Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationConfig ¶
ApplicationConfig interface
type Config ¶
type Config struct {
ApplicationConfig `yaml:"-"`
Debug bool `yaml:"debug"`
Transporter Transporter `yaml:"transporter"`
Database Database `yaml:"database"`
}
Config file definition
func (*Config) LoadFromFile ¶
LoadFromFile load config yaml file from path
type Database ¶ added in v0.1.1
type Database struct {
LevelDB map[string]DatabaseLevelDB `yaml:"leveldb"`
CouchDB DatabaseCouchDB `yaml:"couch_db"`
}
Database config options
type DatabaseCouchDB ¶ added in v0.1.1
type DatabaseCouchDB struct {
Host string `yaml:"host"`
Port string `yaml:"port"`
Username string `yaml:"username"`
Password string `yaml:"password"`
Prefix string `yaml:"prefix"`
}
DatabaseCouchDB couchDB config options
type DatabaseLevelDB ¶ added in v0.1.1
type DatabaseLevelDB struct {
DbPath string `yaml:"path"`
}
DatabaseLevelDB leveldb config options
type RedisTransporter ¶ added in v0.1.1
type RedisTransporter struct {
Host string `yaml:"host"`
Port string `yaml:"port"`
Username string `yaml:"username"`
Password string `yaml:"password"`
Db uint `yaml:"db"`
}
RedisTransporter config options
type Transporter ¶ added in v0.1.1
type Transporter struct {
Timeout uint `yaml:"timeout"`
HeartbeatInterval uint `yaml:"heartbeatInterval"`
DeliveryMethod types.DeliveryMethod `yaml:"deliveryMethod"`
Redis *RedisTransporter `yaml:"redis"`
}
Transporter configuration options
Click to show internal directories.
Click to hide internal directories.