Skip to content

Commit

Permalink
fix: Remove netdata plugin as GPL licence conflicts (#28)
Browse files Browse the repository at this point in the history
The netdata plugin module go-orchestrator used is GPL licenced. It is also archived but the replacement also appears to be to directly use the go.d.plugin module. However this is also has a GPL license.

To prevent licence conflicts and the GPL licence spreading to any closed source users, this is being removed. It seems fairly unlikely to be in common use. We will jump a minor version number to indicate a breaking change and include on release notes.
  • Loading branch information
lwaddicor authored Oct 12, 2022
1 parent a67c81a commit 74530c8
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 96 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,10 @@

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Editor / MAC files
*.sublime-*
*.iml
.idea/
.DS_Store
Thumbs.db
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ go-svrquery is a [Go](http://golang.org/) client for talking to game servers usi
Features
--------
* Support for various game server query protocol's including:
** Titanfall
* Supports per protocol custom [netdata](https://github.com/netdata/netdata) graphs as required by [go.d.plugin](https://github.com/netdata/go.d.plugin) which is based on the [go-orchestrator plugin framework](https://github.com/netdata/go-orchestrator).
** SQP, TF2E

Installation
------------
Expand Down
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ module github.com/multiplay/go-svrquery
go 1.13

require (
github.com/netdata/go-orchestrator v0.0.0-20200917191103-724cb40df90f
github.com/stretchr/objx v0.3.0 // indirect
github.com/stretchr/testify v1.7.0
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
Expand Down
14 changes: 0 additions & 14 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,30 +1,16 @@
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
github.com/gofrs/flock v0.8.0/go.mod h1:F1TvTiK9OcQqauNUHlbJvyl9Qa1QvF/gOUDKA14jxHU=
github.com/ilyam8/hashstructure v1.1.0/go.mod h1:LoLuwBSNpZOi3eTMfAqe2i4oW9QkI08e6g1Pci9h7hs=
github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI=
github.com/mattn/go-isatty v0.0.12 h1:wuysRhFDzyxgEmMf5xjvJ2M9dZoWAXNNr5LSBS7uHXY=
github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
github.com/netdata/go-orchestrator v0.0.0-20200917191103-724cb40df90f h1:xI3KtIDIgWHuFNwkZIbfj9sRQZNs9AOEuyOfXQRJ7ic=
github.com/netdata/go-orchestrator v0.0.0-20200917191103-724cb40df90f/go.mod h1:MaUAHYG6wSsTvYbesOJpDQo9WGEtPI89MZRaDJ4F6zo=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.3.0 h1:NGXK3lHquSN08v5vWalVI/L8XU9hdzE/G6xsrze47As=
github.com/stretchr/objx v0.3.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.6.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200116001909-b77594299b42 h1:vEOn+mP2zCOVzKckCZy6YsCtDblrpj/w7B9nxGNELpg=
golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo=
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
14 changes: 0 additions & 14 deletions lib/svrquery/protocol/interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ package protocol

import (
"io"

"github.com/netdata/go-orchestrator/module"
)

// Queryer is an interface implemented by all svrquery protocols.
Expand All @@ -28,15 +26,3 @@ type Client interface {
Key() string
Address() string
}

// Charter is an interface which is implemented by types which support custom netdata
// charts.
type Charter interface {
Charts(serverID int64) module.Charts
}

// Collector is an interface which is implemented by Responsers that provide custom
// netdata metrics.
type Collector interface {
Collect(serverID int64, mx map[string]int64)
}
46 changes: 0 additions & 46 deletions lib/svrquery/protocol/titanfall/charts.go

This file was deleted.

19 changes: 0 additions & 19 deletions lib/svrquery/protocol/titanfall/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (

"github.com/multiplay/go-svrquery/lib/svrquery/common"
"github.com/multiplay/go-svrquery/lib/svrquery/protocol"
"github.com/netdata/go-orchestrator/module"
)

var (
Expand Down Expand Up @@ -326,24 +325,6 @@ func (q *queryer) clients(r *common.BinaryReader, i *Info) (err error) {
return nil
}

// Charts implements protocol.Charter.
func (q *queryer) Charts(serverID int64) module.Charts {
if q.c.Key() == "" {
return nil
}

cs := *charts.Copy()
for _, c := range cs {
c.ID = fmt.Sprintf(c.ID, serverID)
c.Fam = fmt.Sprintf(c.Fam, serverID)
for _, d := range c.Dims {
d.ID = fmt.Sprintf(d.ID, serverID)
}
c.MarkNotCreated()
}
return cs
}

// serverInfoPkt returns a byte array of info request packet data.
func (q *queryer) serverInfoPkt() []byte {
return []byte{0xFF, 0xFF, 0xFF, 0xFF, ServerInfoRequest, q.version}
Expand Down

0 comments on commit 74530c8

Please sign in to comment.