Documentation
¶
Index ¶
Constants ¶
View Source
const ( ROOT_DIR = iota CLIENT_DIR LOG_DIR CONFIG_DIR COLLECTOR_CONFIG_NAME )
View Source
const (
LOG_EOF = "[EOF]"
)
Variables ¶
This section is empty.
Functions ¶
func GetConstants ¶
func GetConstants(key ConstantKey) string
func InitConstants ¶
func InitConstants(consts map[ConstantKey]string)
func LookupEnvPairs ¶
LookupEnvPairs 根据所有 key 查找环境变量,如果中途有 error 会直接中断
func LookupEnvPairsByKey ¶
LookupEnvPairsByKey 根据所有 key 查找环境变量,如果中途有 error 会直接中断 通过限定 EnvKey 使得调用者只能从已定义的 Env 中选取
Types ¶
type CodecBase64 ¶
type CodecBase64 struct { }
func (*CodecBase64) Encode ¶
func (codec *CodecBase64) Encode(src []byte) string
type ConstantKey ¶
type ConstantKey int
Click to show internal directories.
Click to hide internal directories.