Documentation ¶
Index ¶
- type AdminConfig
- type ApiConfig
- type ClusterConfig
- type Configuration
- func (self *Configuration) AdminHttpPortString() string
- func (self *Configuration) ApiHttpPortString() string
- func (self *Configuration) ApiHttpSslPortString() string
- func (self *Configuration) HostnameOrDetect() string
- func (self *Configuration) ProtobufConnectionString() string
- func (self *Configuration) ProtobufPortString() string
- type LoggingConfig
- type RaftConfig
- type StorageConfig
- type TomlConfiguration
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 ApiHttpSslPort int ApiHttpCertPath string ApiHttpPort int RaftServerPort int SeedServers []string DataDir string RaftDir string ProtobufPort int Hostname string LogFile string LogLevel string BindAddress 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) ApiHttpSslPortString ¶ added in v0.4.1
func (self *Configuration) ApiHttpSslPortString() 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 BindAddress string `toml:"bind-address"` }
Click to show internal directories.
Click to hide internal directories.