Rename everthing to Yanic (#28)

This commit is contained in:
Geno 2017-03-03 16:19:35 +01:00 committed by Julian K
parent 3fc8dff670
commit 1bdfa296d2
14 changed files with 45 additions and 41 deletions

View File

@ -2,10 +2,10 @@ language: go
go:
- tip
install:
- go get -t github.com/FreifunkBremen/respond-collector/...
- go get -t github.com/FreifunkBremen/yanic/...
- go get github.com/mattn/goveralls
- go get golang.org/x/tools/cmd/cover
script:
- ./.test-coverage
- go install github.com/FreifunkBremen/respond-collector/cmd/respond-collector
- go install github.com/FreifunkBremen/respond-collector/cmd/respond-query
- go install github.com/FreifunkBremen/yanic/cmd/yanic
- go install github.com/FreifunkBremen/yanic/cmd/yanic-query

View File

@ -4,11 +4,10 @@ import (
"log"
"net"
"os"
"time"
"github.com/FreifunkBremen/respond-collector/models"
"github.com/FreifunkBremen/respond-collector/respond"
"github.com/FreifunkBremen/yanic/models"
"github.com/FreifunkBremen/yanic/respond"
)
// Usage: respond-query wlp4s0 "[fe80::eade:27ff:dead:beef%wlp4s0]:1001"

View File

@ -7,11 +7,11 @@ import (
"os/signal"
"syscall"
"github.com/FreifunkBremen/respond-collector/database"
"github.com/FreifunkBremen/respond-collector/models"
"github.com/FreifunkBremen/respond-collector/respond"
"github.com/FreifunkBremen/respond-collector/rrd"
"github.com/FreifunkBremen/respond-collector/webserver"
"github.com/FreifunkBremen/yanic/database"
"github.com/FreifunkBremen/yanic/models"
"github.com/FreifunkBremen/yanic/respond"
"github.com/FreifunkBremen/yanic/rrd"
"github.com/FreifunkBremen/yanic/webserver"
)
var (

View File

@ -6,9 +6,10 @@ import (
"sync"
"time"
"github.com/FreifunkBremen/respond-collector/models"
"github.com/influxdata/influxdb/client/v2"
imodels "github.com/influxdata/influxdb/models"
"github.com/FreifunkBremen/yanic/models"
)
const (

View File

@ -1,12 +0,0 @@
[Unit]
Description=respond-collector
[Service]
Type=simple
User=respond-collector
ExecStart=/opt/go/bin/respond-collector -config /etc/respond-collector.conf
Restart=always
Environment=PATH=/usr/bin:/usr/local/bin
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,12 @@
[Unit]
Description=yanic
[Service]
Type=simple
User=yanic
ExecStart=/opt/go/bin/yanic -config /etc/yanic.conf
Restart=always
Environment=PATH=/usr/bin:/usr/local/bin
[Install]
WantedBy=multi-user.target

View File

@ -1,8 +1,8 @@
package meshviewer
import (
"github.com/FreifunkBremen/respond-collector/data"
"github.com/FreifunkBremen/respond-collector/jsontime"
"github.com/FreifunkBremen/yanic/data"
"github.com/FreifunkBremen/yanic/jsontime"
)
// Node struct

View File

@ -5,8 +5,9 @@ import (
"io/ioutil"
"testing"
"github.com/FreifunkBremen/respond-collector/data"
"github.com/stretchr/testify/assert"
"github.com/FreifunkBremen/yanic/data"
)
type TestNode struct {

View File

@ -4,10 +4,11 @@ import (
"net"
"strconv"
"github.com/FreifunkBremen/respond-collector/data"
"github.com/FreifunkBremen/respond-collector/jsontime"
"github.com/FreifunkBremen/respond-collector/meshviewer"
imodels "github.com/influxdata/influxdb/models"
"github.com/FreifunkBremen/yanic/data"
"github.com/FreifunkBremen/yanic/jsontime"
"github.com/FreifunkBremen/yanic/meshviewer"
)
// Node struct

View File

@ -3,8 +3,9 @@ package models
import (
"testing"
"github.com/FreifunkBremen/respond-collector/data"
"github.com/stretchr/testify/assert"
"github.com/FreifunkBremen/yanic/data"
)
func TestToInflux(t *testing.T) {

View File

@ -7,9 +7,9 @@ import (
"sync"
"time"
"github.com/FreifunkBremen/respond-collector/data"
"github.com/FreifunkBremen/respond-collector/jsontime"
"github.com/FreifunkBremen/respond-collector/meshviewer"
"github.com/FreifunkBremen/yanic/data"
"github.com/FreifunkBremen/yanic/jsontime"
"github.com/FreifunkBremen/yanic/meshviewer"
)
// Nodes struct: cache DB of Node's structs

View File

@ -6,8 +6,9 @@ import (
"testing"
"time"
"github.com/FreifunkBremen/respond-collector/data"
"github.com/stretchr/testify/assert"
"github.com/FreifunkBremen/yanic/data"
)
func TestExpire(t *testing.T) {

View File

@ -3,8 +3,9 @@ package models
import (
"testing"
"github.com/FreifunkBremen/respond-collector/data"
"github.com/stretchr/testify/assert"
"github.com/FreifunkBremen/yanic/data"
)
func TestGlobalStats(t *testing.T) {

View File

@ -7,13 +7,12 @@ import (
"log"
"net"
"time"
"fmt"
"github.com/FreifunkBremen/respond-collector/data"
"github.com/FreifunkBremen/respond-collector/database"
"github.com/FreifunkBremen/respond-collector/jsontime"
"github.com/FreifunkBremen/respond-collector/models"
"github.com/FreifunkBremen/yanic/data"
"github.com/FreifunkBremen/yanic/database"
"github.com/FreifunkBremen/yanic/jsontime"
"github.com/FreifunkBremen/yanic/models"
)
// Collector for a specificle respond messages