mongo

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 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.Database) *Provider

func (*Provider) Close

func (p *Provider) Close() error

func (*Provider) GetObject

func (p *Provider) GetObject(ctx context.Context, ref *stategate.ObjectRef) (*stategate.Object, error)

func (Provider) SaveEvent

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

func (*Provider) SearchEvents

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

func (*Provider) SearchObjects added in v0.2.2

func (p *Provider) SearchObjects(ctx context.Context, opts *stategate.SearchObjectOpts) (*stategate.Objects, error)

func (Provider) SetObject

func (p Provider) SetObject(ctx context.Context, object *stategate.Object) error

Jump to

Keyboard shortcuts

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