Documentation ¶
Overview ¶
mabetle config package. mcore.Config is a interface provide some basic functions:
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseConfig ¶
type BaseConfig struct {
StringDefaultGetter
}
type BoolGetter ¶
type Config ¶
type Config interface { ContainChecker KeyValuePutter StringDefaultGetter StringGetter BoolGetter IntGetter }
Combine them Any Config must impl this interface
type ContainChecker ¶
type KeyValueConfig ¶
type KeyValueConfig struct { mcore.StringKeyValueMap // store key and value. KeyValueLoader //load keys and values. }
KeyValueConfig implements Config interface.
type KeyValueLoader ¶
type KeyValueLoader interface {
LoadKeyValue() mcore.StringKeyValueMap
}
KeyValueLoader
type KeyValuePutter ¶
type KeyValuePutter interface {
Put(key, value string)
}
type StringDefaultGetter ¶
type StringGetter ¶
Click to show internal directories.
Click to hide internal directories.