Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminConfig ¶ added in v0.4.0
type ClusterConfig ¶ added in v0.4.0
type Configuration ¶
type Configuration struct { AdminHttpPort int AdminAssetsDir string ApiHttpPort int RaftServerPort int SeedServers []string DataDir string RaftDir string ProtobufPort int Hostname string LogFile string LogLevel string }
func LoadConfiguration ¶
func LoadConfiguration(fileName string) *Configuration
func (*Configuration) AdminHttpPortString ¶
func (self *Configuration) AdminHttpPortString() string
func (*Configuration) ApiHttpPortString ¶
func (self *Configuration) ApiHttpPortString() string
func (*Configuration) HostnameOrDetect ¶ added in v0.4.0
func (self *Configuration) HostnameOrDetect() string
func (*Configuration) ProtobufConnectionString ¶ added in v0.4.0
func (self *Configuration) ProtobufConnectionString() string
func (*Configuration) ProtobufPortString ¶ added in v0.4.0
func (self *Configuration) ProtobufPortString() string
type LoggingConfig ¶ added in v0.4.0
type RaftConfig ¶ added in v0.4.0
type StorageConfig ¶ added in v0.4.0
type StorageConfig struct {
Dir string
}
type TomlConfiguration ¶ added in v0.4.0
type TomlConfiguration struct { Admin AdminConfig Api ApiConfig Raft RaftConfig Storage StorageConfig Cluster ClusterConfig Logging LoggingConfig Hostname string }
Click to show internal directories.
Click to hide internal directories.