Documentation ¶
Index ¶
- Constants
- Variables
- func DetectIp(localIp string) (string, error)
- func FreeTcpPort() (int, error)
- func Hostname(ip string, port int) (string, error)
- func Random(min, max int) int
- func Random64(min, max int64) int64
- func RandomBytes(nb int) []byte
- func RandomDuration(min, max time.Duration) time.Duration
- type Consul
- type ConsulService
- type GrafanaClient
- type Mqtt
- type Prometheus
Constants ¶
View Source
const ( MQTT_START_TOPIC = "/lorhammer" MQTT_INIT_TOPIC = "/lorhammer/all" MQTT_ORCHESTRATOR_TOPIC = "/lorhammer/orchestrator" )
Variables ¶
View Source
var LOG_GRAFANA = logrus.WithField("logger", "tools/grafana")
Functions ¶
func FreeTcpPort ¶
func RandomBytes ¶
Types ¶
type Consul ¶
type ConsulService ¶
type GrafanaClient ¶
type GrafanaClient struct {
// contains filtered or unexported fields
}
func NewGrafana ¶
func NewGrafana(consulClient Consul) (*GrafanaClient, error)
func (*GrafanaClient) MakeSnapshot ¶
type Mqtt ¶
type Prometheus ¶
type Prometheus interface { StartTimer() func() AddGateway(nb int) SubGateway(nb int) AddNodes(nb int) SubNodes(nb int) AddLongRequest(nb int) }
func NewPrometheus ¶
func NewPrometheus() Prometheus
Click to show internal directories.
Click to hide internal directories.