store

package
v0.0.0-...-53b4af0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2018 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(name string, parameters map[string]string) (metrics.Datastore, error)

Create initializes a registered datastore type with given parameters.

func Register

func Register(name string, f DatastoreFactory)

Register should be called by datastore package’s init function to register the datastore by its name. If it is already registered, it panics.

Types

type DatastoreFactory

type DatastoreFactory func(parameters map[string]string) (metrics.Datastore, error)

DatastoreFactory initializes a new datastore instance with given configuration parameters.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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