service

package
v3.14.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2017 License: Apache-2.0 Imports: 10 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBaseConn

func GetBaseConn() (c *sql.DB, e error)

func GetDbConn

func GetDbConn(connName string) (c *sql.DB, e error)

func GetHostsFromGroup

func GetHostsFromGroup(grpName string) map[string]int

FIX ME: too many JOIN

func GetMockCfgFromDB

func GetMockCfgFromDB() map[string]*cmodel.NodataConfig

当 grp展开结果 与 host结果 存在冲突时, 优先选择 host结果

func InitDB

func InitDB()

Types

type MockCfg

type MockCfg struct {
	Id      int
	Name    string
	Obj     string
	ObjType string
	Metric  string
	Tags    map[string]string
	Type    string
	Step    int64
	Mock    float64
}

Jump to

Keyboard shortcuts

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