serverconf

package
v0.0.0-...-88649aa Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2012 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

func New

func New(cfgMap map[string]string) *Config

Create a new Config using cfgMap as the intial internal config map. If cfgMap is nil, ConfigWithMap will create a new config map.

func (*Config) BoolValue

func (cfg *Config) BoolValue(key string) (boolval bool)

Get the value fo a sepcific config key as a bool

func (*Config) GetAll

func (cfg *Config) GetAll() (all map[string]string)

Get a copy of the Config's internal config map

func (*Config) IntValue

func (cfg *Config) IntValue(key string) (intval int)

Get the value of a speific config key as an int

func (*Config) Reset

func (cfg *Config) Reset(key string)

Reset the value of a config key

func (*Config) Set

func (cfg *Config) Set(key string, value string)

Set a new value for a config key

func (*Config) StringValue

func (cfg *Config) StringValue(key string) (value string)

Get the value of a specific config key encoded as a string

func (*Config) Uint32Value

func (cfg *Config) Uint32Value(key string) (uint32val uint32)

Get the value of a specific config key as a uint32

Jump to

Keyboard shortcuts

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