Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultRiak is the default riak if one is not provided. DefaultRiak = "localhost:8087" // DefaultApi is the default megam gateway if one is not provided. DefaultApi = "http://localhost:9000" // DefaultAMQP is the default rabbitmq if one is not provided. DefaultAMQP = "amqp://guest:guest@localhost:5672/" // DefaultHeartbeatTimeout is the default heartbeat timeout for the store. DefaultHeartbeatTimeout = 1000 * time.Millisecond // DefaultElectionTimeout is the default election timeout for the store. DefaultElectionTimeout = 1000 * time.Millisecond // DefaultLeaderLeaseTimeout is the default leader lease for the store. DefaultLeaderLeaseTimeout = 500 * time.Millisecond MEGAM_HOME = "MEGAM_HOME" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Home string `toml:"home"` Dir string `toml:"dir"` Riak []string `toml:"riak"` Api string `toml:"api"` AMQP string `toml:"amqp"` Peers []string `toml:"-"` ElectionTimeout toml.Duration `toml:"election-timeout"` HeartbeatTimeout toml.Duration `toml:"heartbeat-timeout"` LeaderLeaseTimeout toml.Duration `toml:"leader-lease-timeout"` }
Config represents the meta configuration.
var MC *Config
Click to show internal directories.
Click to hide internal directories.