configuration

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2014 License: MIT Imports: 6 Imported by: 0

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 AdminConfig struct {
	Port   int
	Assets string
}

type ApiConfig added in v0.4.0

type ApiConfig struct {
	SslPort     int    `toml:"ssl-port"`
	SslCertPath string `toml:"ssl-cert"`
	Port        int
}

type ClusterConfig added in v0.4.0

type ClusterConfig struct {
	SeedServers  []string `toml:"seed-servers"`
	ProtobufPort int      `toml:"protobuf_port"`
}

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 LoggingConfig struct {
	File  string
	Level string
}

type RaftConfig added in v0.4.0

type RaftConfig struct {
	Port int
	Dir  string
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL