stores

package
v0.0.0-...-69aae1f Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const SizeUID = 200

Variables

View Source
var ReservedFields = []string{"id", "uid", "created", "updated", "data"}

Functions

func New

func New(kind kolektor.StoreKind, dsn string) (kolektor.Storer, error)

New instantiated a certain kind of store using dsn for connecting.

func Register

func Register(kind kolektor.StoreKind, fn func(dsn string) (kolektor.Storer, error))

Register registers a kind of store mapping it with it initialization function.

func Registered

func Registered() map[kolektor.StoreKind]func(dsn string) (kolektor.Storer, error)

Registered returns map of all registered stores. The key is the kind and the function with which a Store instance is created.

Types

type ErrNoObject

type ErrNoObject struct {
	Name string
}

func (ErrNoObject) Error

func (e ErrNoObject) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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