Documentation
¶
Index ¶
- func GetAny(args ...string) jsoniter.Any
- func GetBool(args ...string) bool
- func GetFloat32(args ...string) float32
- func GetFloat64(args ...string) float64
- func GetInt(args ...string) int
- func GetInt32(args ...string) int32
- func GetInt64(args ...string) int64
- func GetString(args ...string) string
- func GetUint(args ...string) uint
- func GetUint32(args ...string) uint32
- func GetUint64(args ...string) uint64
- func NewConfig(opts ...Options) *config
- func RocConfig() *config
- type Option
- type Options
- type RConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFloat32 ¶
func GetFloat64 ¶
Types ¶
type RConfig ¶
type RConfig interface {
// ConfigListAndSync Get all config and sync to cache
ConfigListAndSync() error
// WithConfig Get config with key
WithConfig(key string) ([]byte, error)
// SetConfig set config with key value
SetConfig(key string, value []byte) error
// Clean clean all config
Clean() error
// Delete remove a config with key
Delete(key string) error
// Watch watch config and update
Watch() chan *etcd.Action
// Backup backup config
Backup() error
// LoadFs2Etcd load a config file to etcd
LoadFs2Etcd() error
// Close close config
Close()
}
Click to show internal directories.
Click to hide internal directories.