Documentation ¶
Index ¶
- Constants
- Variables
- func FastFormat(buf *bytes.Buffer, v interface{}) string
- func HostRangeFast(qry string, debug bool) (string, []interface{})
- func NewBenchmark(dbName string, opts *LoadingOptions, dataSourceConfig *source.DataSourceConfig) (targets.Benchmark, error)
- func NewTarget() targets.ImplementedTarget
- type Ctx
- type LoadingOptions
- type ParsePrepare
- func (p *ParsePrepare) HostRange(qry string, debug bool) (string, []interface{})
- func (p *ParsePrepare) HostsRange(qry string, debug bool) (string, []interface{})
- func (p *ParsePrepare) Less(qry string, debug bool) (string, []interface{})
- func (p *ParsePrepare) NotChange(qry string, debug bool) (string, []interface{})
- func (p *ParsePrepare) Parse(qry string, debug bool) (string, []interface{})
- func (p *ParsePrepare) Range(qry string, debug bool) (string, []interface{})
- type Serializer
- type Table
Constants ¶
View Source
const ( InsertMetric = '1' CreateTable = '2' InsertMetricAndTag = '3' InsertTag = '4' NotNull = " not null" )
View Source
const Size1M = 1 * 1024 * 1024
Variables ¶
View Source
var ( KAIWUINSERT = "insert" KAIWUPREPARE = "prepare" KAIWUPREPAREIOT = "prepareiot" )
View Source
var DEVOPSPRE = []string{"cpu", "diskio", "disk", "kernel", "mem", "net", "nginx", "postgresl", "redis"}
View Source
var GlobalTable = sync.Map{}
View Source
var IOTPRE = []string{"readings", "diagnostics"}
Functions ¶
func FastFormat ¶
func HostRangeFast ¶
func NewBenchmark ¶
func NewBenchmark(dbName string, opts *LoadingOptions, dataSourceConfig *source.DataSourceConfig) (targets.Benchmark, error)
func NewTarget ¶
func NewTarget() targets.ImplementedTarget
Types ¶
type LoadingOptions ¶
type ParsePrepare ¶
type ParsePrepare struct {
// contains filtered or unexported fields
}
func NewParsePrepare ¶
func NewParsePrepare(label string) *ParsePrepare
func (*ParsePrepare) HostRange ¶
func (p *ParsePrepare) HostRange(qry string, debug bool) (string, []interface{})
func (*ParsePrepare) HostsRange ¶
func (p *ParsePrepare) HostsRange(qry string, debug bool) (string, []interface{})
func (*ParsePrepare) Less ¶
func (p *ParsePrepare) Less(qry string, debug bool) (string, []interface{})
func (*ParsePrepare) NotChange ¶
func (p *ParsePrepare) NotChange(qry string, debug bool) (string, []interface{})
type Serializer ¶
type Serializer struct {
// contains filtered or unexported fields
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.