register

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCacheTypeMissing = errors.New("register: cache 'type' parameter missing")
	ErrCacheTypeInvalid = errors.New("register: cache 'type' value must be a string")
)
View Source
var (
	ErrProviderNameMissing = errors.New("register: provider 'name' parameter missing")
	ErrProviderNameInvalid = errors.New("register: provider 'name' value must be a string")
)

Functions

func Cache

func Cache(config dict.Dicter) (cache.Interface, error)

Cache registers cache backends

func Maps

func Maps(a *atlas.Atlas, maps []config.Map, providers map[string]provider.Tiler) error

Maps registers maps with with atlas

func Providers

func Providers(providers []dict.Dicter) (map[string]provider.Tiler, error)

Providers registers data provider backends

Types

type ErrDefaultTagsInvalid

type ErrDefaultTagsInvalid struct {
	ProviderLayer string
}

func (ErrDefaultTagsInvalid) Error

func (e ErrDefaultTagsInvalid) Error() string

type ErrFetchingLayerInfo

type ErrFetchingLayerInfo struct {
	Provider string
}

func (ErrFetchingLayerInfo) Error

func (e ErrFetchingLayerInfo) Error() string

type ErrProviderAlreadyRegistered

type ErrProviderAlreadyRegistered string

func (ErrProviderAlreadyRegistered) Error

type ErrProviderLayerInvalid

type ErrProviderLayerInvalid struct {
	ProviderLayer string
	Map           string
}

func (ErrProviderLayerInvalid) Error

func (e ErrProviderLayerInvalid) Error() string

type ErrProviderLayerNotRegistered

type ErrProviderLayerNotRegistered struct {
	MapName       string
	ProviderLayer string
	Provider      string
}

func (ErrProviderLayerNotRegistered) Error

type ErrProviderNotFound

type ErrProviderNotFound struct {
	Provider string
}

func (ErrProviderNotFound) Error

func (e ErrProviderNotFound) Error() string

type ErrProviderTypeInvalid

type ErrProviderTypeInvalid string

func (ErrProviderTypeInvalid) Error

func (e ErrProviderTypeInvalid) Error() string

type ErrProviderTypeMissing

type ErrProviderTypeMissing string

func (ErrProviderTypeMissing) Error

func (e ErrProviderTypeMissing) Error() string

Jump to

Keyboard shortcuts

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