storage

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 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 {
	SetEntity(ctx context.Context, object *stategate.Entity) *errorz.Error
	SaveEvent(ctx context.Context, event *stategate.Event) *errorz.Error
	GetEntity(ctx context.Context, ref *stategate.EntityRef) (*stategate.Entity, *errorz.Error)
	DelEntity(ctx context.Context, ref *stategate.EntityRef) *errorz.Error
	SearchEntities(ctx context.Context, ref *stategate.SearchEntitiesOpts) (*stategate.Entities, *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