Rename everthing to Yanic (#28)
This commit is contained in:
parent
3fc8dff670
commit
1bdfa296d2
@ -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
|
||||
|
@ -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"
|
@ -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 (
|
@ -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 (
|
||||
|
@ -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
|
12
init/linux-systemd/yanic.service
Normal file
12
init/linux-systemd/yanic.service
Normal 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
|
@ -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
|
||||
|
@ -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 {
|
||||
|
@ -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
|
||||
|
@ -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) {
|
||||
|
@ -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
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user