storage

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllProviderNames = []ProviderName{MONGO_STORAGE}

Functions

This section is empty.

Types

type Provider

type Provider interface {
	SetObject(ctx context.Context, object *stategate.Object) *errorz.Error
	SaveEvent(ctx context.Context, event *stategate.Event) *errorz.Error
	GetObject(ctx context.Context, ref *stategate.ObjectRef) (*stategate.Object, *errorz.Error)
	SearchObjects(ctx context.Context, ref *stategate.SearchObjectOpts) (*stategate.Objects, *errorz.Error)
	SearchEvents(ctx context.Context, ref *stategate.SearchEventOpts) (*stategate.Events, *errorz.Error)
	Close() error
}

func GetStorageProvider

func GetStorageProvider(lgger *logger.Logger, providerConfig map[string]string) (Provider, error)

type ProviderName

type ProviderName string
const (
	MONGO_STORAGE ProviderName = "mongo"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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