service

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

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