conf

package
v0.0.0-...-3af32c6 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GAPIConfs = map[string]TAPIConf{}
	GLogConf  logs.TLoggerConf
)

Functions

func InitConfig

func InitConfig()

Types

type TAPIConf

type TAPIConf struct {
	Name       string `ini:"-"`
	Addr       string `ini:"addr"`
	Interval   int    `ini:"interval"` // unit: s
	Uri        string `ini:"uri"`
	Query      string `ini:"query"`
	Body       string `ini:"body"`
	CostLine   int    `ini:"costline"` // unit: ms
	DDToken    string `ini:"ddtoken"`
	ReqHeaders map[string]string
}

func (TAPIConf) String

func (cf TAPIConf) String() string

Jump to

Keyboard shortcuts

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