Documentation ¶
Index ¶
- func CallScript(script string) (string, string, error)
- func ConvStr2Prom(str string) float64
- func GetEnvBool(key string, value bool) bool
- func GetEnvInt(key string, value int) int
- func GetEnvInt64(key string, value int64) int64
- func GetEnvStr(key string, value string) string
- func GetInterfaceIpv4Addr(interfaceName string) (addr string, err error)
- func ProcessExists(processName string) (bool, error)
- type ConfigProperties
- func (c *ConfigProperties) Init()
- func (c *ConfigProperties) Set(key, val string)
- func (c *ConfigProperties) SetBool(key string, val bool)
- func (c *ConfigProperties) SetInt(key string, val int)
- func (c *ConfigProperties) SetInt32(key string, val int32)
- func (c *ConfigProperties) SetInt64(key string, val int64)
- func (c *ConfigProperties) Write(dstFile string) error
- type ConfigYaml
- func (c *ConfigYaml) Init()
- func (c *ConfigYaml) Set(key, val string)
- func (c *ConfigYaml) SetBool(key string, val bool)
- func (c *ConfigYaml) SetInt(key string, val int)
- func (c *ConfigYaml) SetInt32(key string, val int32)
- func (c *ConfigYaml) SetInt64(key string, val int64)
- func (c *ConfigYaml) SetMap(key string, val map[string]interface{})
- func (c *ConfigYaml) Write(dstFile string) error
- type FileContentWatcher
- type FsStorage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvStr2Prom ¶
func GetEnvBool ¶
func GetEnvInt64 ¶
func GetInterfaceIpv4Addr ¶ added in v0.0.6
GetInterfaceIpv4Addr useful links: https://stackoverflow.com/questions/27410764/dial-with-a-specific-address-interface-golang https://stackoverflow.com/questions/22751035/golang-distinguish-ipv4-ipv6
func ProcessExists ¶ added in v0.0.4
Types ¶
type ConfigProperties ¶
type ConfigProperties struct {
// contains filtered or unexported fields
}
func ConfigPropFromFile ¶ added in v0.0.2
func ConfigPropFromFile(file string) (*ConfigProperties, error)
func (*ConfigProperties) Init ¶
func (c *ConfigProperties) Init()
func (*ConfigProperties) Set ¶
func (c *ConfigProperties) Set(key, val string)
func (*ConfigProperties) SetBool ¶ added in v0.0.7
func (c *ConfigProperties) SetBool(key string, val bool)
func (*ConfigProperties) SetInt ¶ added in v0.0.2
func (c *ConfigProperties) SetInt(key string, val int)
func (*ConfigProperties) SetInt32 ¶ added in v0.0.8
func (c *ConfigProperties) SetInt32(key string, val int32)
func (*ConfigProperties) SetInt64 ¶ added in v0.0.2
func (c *ConfigProperties) SetInt64(key string, val int64)
func (*ConfigProperties) Write ¶
func (c *ConfigProperties) Write(dstFile string) error
type ConfigYaml ¶ added in v0.0.9
type ConfigYaml struct {
// contains filtered or unexported fields
}
func ConfigYamlFromFile ¶ added in v0.0.9
func ConfigYamlFromFile(file string) (*ConfigYaml, error)
func (*ConfigYaml) Init ¶ added in v0.0.9
func (c *ConfigYaml) Init()
func (*ConfigYaml) Set ¶ added in v0.0.9
func (c *ConfigYaml) Set(key, val string)
func (*ConfigYaml) SetBool ¶ added in v0.0.9
func (c *ConfigYaml) SetBool(key string, val bool)
func (*ConfigYaml) SetInt ¶ added in v0.0.9
func (c *ConfigYaml) SetInt(key string, val int)
func (*ConfigYaml) SetInt32 ¶ added in v0.0.9
func (c *ConfigYaml) SetInt32(key string, val int32)
func (*ConfigYaml) SetInt64 ¶ added in v0.0.9
func (c *ConfigYaml) SetInt64(key string, val int64)
func (*ConfigYaml) SetMap ¶ added in v0.0.9
func (c *ConfigYaml) SetMap(key string, val map[string]interface{})
func (*ConfigYaml) Write ¶ added in v0.0.9
func (c *ConfigYaml) Write(dstFile string) error
type FileContentWatcher ¶ added in v0.0.10
type FsStorage ¶ added in v0.0.5
type FsStorage struct {
// contains filtered or unexported fields
}
func NewFsStorage ¶ added in v0.0.5
func (*FsStorage) AddNamespace ¶ added in v0.0.5
Click to show internal directories.
Click to hide internal directories.