mongo

package
v0.11.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func NewProvider

func NewProvider(db *mongo.Client) *Provider

func (*Provider) Close

func (p *Provider) Close() error

func (*Provider) DelEntity added in v0.6.0

func (p *Provider) DelEntity(ctx context.Context, ref *stategate.EntityRef) *errorz.Error

func (Provider) EditEntity added in v0.6.1

func (p Provider) EditEntity(ctx context.Context, state *stategate.Entity) (*stategate.Entity, *errorz.Error)

func (*Provider) GetEntity added in v0.6.0

func (p *Provider) GetEntity(ctx context.Context, ref *stategate.EntityRef) (*stategate.Entity, *errorz.Error)

func (*Provider) GetEvent added in v0.7.0

func (p *Provider) GetEvent(ctx context.Context, ref *stategate.EventRef) (*stategate.Event, *errorz.Error)

func (Provider) SaveEvent

func (p Provider) SaveEvent(ctx context.Context, e *stategate.Event) *errorz.Error

func (*Provider) SearchEntities added in v0.6.0

func (p *Provider) SearchEntities(ctx context.Context, opts *stategate.SearchEntityOpts) (*stategate.Entities, *errorz.Error)

func (*Provider) SearchEvents

func (p *Provider) SearchEvents(ctx context.Context, opts *stategate.SearchEventOpts) (*stategate.Events, *errorz.Error)

func (Provider) SetEntity added in v0.6.0

func (p Provider) SetEntity(ctx context.Context, state *stategate.Entity) *errorz.Error

Jump to

Keyboard shortcuts

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