Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationConfig ¶
type Config ¶
type Config struct {
ApplicationConfig `yaml:"-"`
Debug bool `yaml:"debug"`
Transporter ConfigTransporter `yaml:"transporter"`
Database ConfigDatabase `yaml:"database"`
/// ---
RPC ConfigRPC `yaml:"rpc"`
}
func (*Config) LoadFromFile ¶
LoadFromFile load config yaml file from path
type ConfigDatabase ¶
type ConfigDatabase struct {
LevelDB map[string]ConfigLevelDB `yaml:"leveldb"`
CouchDB ConfigDatabaseCouchDB `yaml:"couch_db"`
}
/ -----
type ConfigDatabaseCouchDB ¶
type ConfigLevelDB ¶
type ConfigLevelDB struct {
DbPath string `yaml:"path"`
}
type ConfigRedisTransporter ¶
type ConfigTransporter ¶
type ConfigTransporter struct {
Redis *ConfigRedisTransporter `yaml:"redis"`
}
-- Transporters -- //
Click to show internal directories.
Click to hide internal directories.