Documentation ¶
Index ¶
- Constants
- func Flush(tt ...time.Time) error
- func GetDatabase() string
- func Publish(name string, tags map[string]string, fields map[string]interface{}) error
- func SetDatabase(db string)
- func SetFlushInterval(dur time.Duration)
- func SetGlobalTag(key, value string)
- func SetInfluxdb(addr string) (err error)
- type Float
- type Int
- type Map
- type String
- type Var
Constants ¶
View Source
const ( INT uint8 = 1 << iota FLOAT STRING )
Variable type
Variables ¶
This section is empty.
Functions ¶
func GetDatabase ¶
func GetDatabase() string
func SetFlushInterval ¶
SetFlushInterval change the flush interval
func SetGlobalTag ¶
func SetGlobalTag(key, value string)
SetGlobalTag set global tag list, used by each variable
func SetInfluxdb ¶
SetInfluxdb initialize the influxdb address
Types ¶
type Float ¶
type Float struct {
// contains filtered or unexported fields
}
Float variable
type Var ¶
type Var struct {
// contains filtered or unexported fields
}
func (Var) GetMeasurement ¶
Click to show internal directories.
Click to hide internal directories.