configuration

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 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 {
	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
	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 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
}

Jump to

Keyboard shortcuts

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