provider

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Drivers

func Drivers() (l []string)

Drivers returns a list of drivers that have registered.

func For

func For(name string, config map[string]interface{}) (mvt.Provider, error)

For function returns a configured provider of the given type, provided the correct config map.

func Register

func Register(name string, init InitFunc) error

Register is called by the init functions of the provider.

Types

type InitFunc

type InitFunc func(map[string]interface{}) (mvt.Provider, error)

InitFunc initilize a provider given a config map. The init function should validate the config map, and report any errors. This is called by the For function.

Jump to

Keyboard shortcuts

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