Build the nats input on freebsd when cgo is enabled (#6658)
This commit is contained in:
parent
0c918b099b
commit
122ec0fa39
|
@ -1,20 +1,18 @@
|
||||||
// +build !freebsd
|
// +build !freebsd freebsd,cgo
|
||||||
|
|
||||||
package nats
|
package nats
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"encoding/json"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
"path"
|
"path"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"encoding/json"
|
|
||||||
|
|
||||||
"github.com/influxdata/telegraf"
|
"github.com/influxdata/telegraf"
|
||||||
"github.com/influxdata/telegraf/internal"
|
"github.com/influxdata/telegraf/internal"
|
||||||
"github.com/influxdata/telegraf/plugins/inputs"
|
"github.com/influxdata/telegraf/plugins/inputs"
|
||||||
|
|
||||||
gnatsd "github.com/nats-io/gnatsd/server"
|
gnatsd "github.com/nats-io/gnatsd/server"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
// +build freebsd
|
// +build freebsd,!cgo
|
||||||
|
|
||||||
package nats
|
package nats
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// +build !freebsd
|
// +build !freebsd freebsd,cgo
|
||||||
|
|
||||||
package nats
|
package nats
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue