storage

package
v0.0.0-...-f97d723 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pusher

type Pusher interface {
	// Get the name of the storage
	// Will be unique across all storages
	Name() string
	// Method call when insert new data in the storage
	Push(value interface{}) error
}

Pusher is the interface for storage pusher The name must be unique and must be the same as the storage type, the Push function will be called with the receiving data

func Load

func Load(storageType string, storageSpecs map[string]interface{}) (pusher Pusher, err error)

Load will fetch and return the built-in storage based on the given storageType params and initialize it with given storageSpecs given

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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