dyconf

package module
v0.0.0-...-83b80af Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2016 License: MIT Imports: 10 Imported by: 0

README

DyConf Build Status Coverage Status GoDoc

A dynamic configuration tool written in go. Will add more details here.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	Get(key string) ([]byte, error)
	Close() error
}

Config provides methods to access the config values.

func New

func New(fileName string) (Config, error)

New initializes and returns a new config that can be used to get the config values.

type ConfigManager

type ConfigManager interface {
	Get(key string) ([]byte, error)
	Set(key string, value []byte) error
	Delete(key string) error
	Map() (map[string][]byte, error)
	Defrag() error
	Close() error
	// contains filtered or unexported methods
}

ConfigManager provides methods to manage the config data.

func NewManager

func NewManager(fileName string) (ConfigManager, error)

NewManager initializes and returns a new ConfigManager that can be used to manage the config data.

Jump to

Keyboard shortcuts

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