config

package
v0.0.0-...-30ca3a0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2014 License: BSD-3-Clause Imports: 2 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoProvider = errors.New("config: no provider found")
)

Functions

func ConfiguratorRegister

func ConfiguratorRegister(name string, c ConfiguratorProvider) error

Types

type Configurator

type Configurator interface {
	Set(key, val string) error
	Get(key string) (string, error)
	Close() error
}

type ConfiguratorProvider

type ConfiguratorProvider interface {
	OpenConfigurator(*http.Request) (Configurator, error)
}

func GetProvider

func GetProvider(name string) (ConfiguratorProvider, error)

func Provider

func Provider() ConfiguratorProvider

Provider returns the last provider added. It will panic if there's no one.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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