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 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.
Click to show internal directories.
Click to hide internal directories.