mongo

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 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) DelState added in v0.5.0

func (p *Provider) DelState(ctx context.Context, ref *stategate.StateRef) *errorz.Error

func (*Provider) GetState added in v0.5.0

func (p *Provider) GetState(ctx context.Context, ref *stategate.StateRef) (*stategate.State, *errorz.Error)

func (Provider) SaveEvent

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

func (*Provider) SearchEvents

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

func (*Provider) SearchState added in v0.5.0

func (Provider) SetState added in v0.5.0

func (p Provider) SetState(ctx context.Context, state *stategate.State) *errorz.Error

Jump to

Keyboard shortcuts

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