tsdb

package
v0.0.0-...-276be26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// API 调用动作:call/invoke, break, open, close, down, up, ...
	ACTION_INVOKE = "call"
	ACTION_BREAK  = "break" // 意外中断了
	ACTION_OPEN   = "open"  // 重新连接上了,已经正确连接了
	ACTION_CLOSE  = "close" // 主动关闭了
	ACTION_DOWN   = "down"  // 下线了
	ACTION_UP     = "up"    // 上线了

	STATS_MEASUREMENT_NAME = "api_stats"

	DEFAULT_INFLUXDB_SERVER = "http://localhost:8086"

	MODE_HTTP = "HTTP"
	MODE_UDP  = "UDP"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Tags

type Tags map[string]string

type TinyClient

type TinyClient interface {
	Init() error
	Shutdown()
	Close()
	FlushStats()

	Add(tags Tags, values Values) error

	Query(ql string) (data interface{}, err error)
}

func New

func New() TinyClient

type Values

type Values map[string]interface{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL