Documentation ¶
Overview ¶
Package conf provide config
Index ¶
- func BindPFlag(key string, flag *pflag.Flag) error
- func Get(key string) interface{}
- func GetBool(key string) bool
- func GetDuration(key string) time.Duration
- func GetFloat64(key string) float64
- func GetInt(key string) int
- func GetInt32(key string) int32
- func GetInt64(key string) int64
- func GetRaftPort() int
- func GetString(key string) string
- func GetUint32(key string) uint32
- func InitConfig(opts ...Option)
- func Set(key string, value interface{})
- func SetDefault(key string, value interface{})
- type Conf
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDuration ¶
func GetFloat64 ¶
func GetRaftPort ¶
func GetRaftPort() int
func SetDefault ¶
func SetDefault(key string, value interface{})
Types ¶
type Conf ¶
func NewDefault ¶
func NewDefault() *Conf
Click to show internal directories.
Click to hide internal directories.