Documentation ¶
Index ¶
- Constants
- Variables
- func GetNoise(project, uri string) (noises map[string]NoiseInfo)
- func GetValueByKey(project, dKey, dValDefault string) string
- func GetValueWithProject(sProject, sKey, dValDefault string) string
- func Reload()
- func ResetModuleInfo()
- func Update()
- type Maps
- type Module
- type Modules
- type Name
- type NoiseInfo
- type ReportResult
Constants ¶
View Source
const ( PHttp = "http" LGO = "go" DefaultDepartment = "default" // key KContext = "context" KListenAddr = "listen-addr" KProtocol = "protocol" KLanguage = "language" KDepartment = "department" KLogPath = "logpath" )
Variables ¶
View Source
var Host2Module = map[string]string{}
View Source
var Module2Host = map[string]string{}
View Source
var ModuleNames = make([]Name, 0)
View Source
var ModuleNamesUniq = map[string]int{}
Functions ¶
func GetValueByKey ¶
func GetValueWithProject ¶
Types ¶
type Maps ¶
func (*Maps) UnmarshalJSON ¶
type Module ¶
type Module struct { Name string `json:"name"` Data Maps `json:"data"` KVs map[string]string `json:"-"` }
func GetModules ¶
func GetModules() []*Module
type ReportResult ¶
func DelNoise ¶
func DelNoise(id, project, uri, noise string) (result *ReportResult)
func ReportNoise ¶
func ReportNoise(project, uri, noise, user string) (result *ReportResult)
Click to show internal directories.
Click to hide internal directories.