eventsstore

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("not found")

Functions

This section is empty.

Types

type ListRecord

type ListRecord struct {
	Event  *apievent.Event
	States []*apievent.EventStateRecord
}

type MonitoredStore added in v0.6.0

type MonitoredStore struct {
	Store Store

	EventStateUpdate        func(apievent.EventID, *apievent.EventStateRecord)
	ProjectEventStateUpdate func(apievent.EventID, apiproject.ProjectID, *apievent.ProjectEventStateRecord)
}

func (*MonitoredStore) Add added in v0.6.0

func (m *MonitoredStore) Add(
	ctx context.Context,
	id apievent.EventID,
	srcid apieventsrc.EventSourceID,
	assoc string,
	originalID string,
	typ string,
	data map[string]*apivalues.Value,
	memo map[string]string,
) (apievent.EventID, error)

func (*MonitoredStore) Get added in v0.6.0

func (*MonitoredStore) GetProjectWaitingEvents added in v0.6.0

func (m *MonitoredStore) GetProjectWaitingEvents(ctx context.Context, pid apiproject.ProjectID) ([]apievent.EventID, error)

func (*MonitoredStore) GetState added in v0.6.0

func (*MonitoredStore) GetStateForProject added in v0.6.0

func (*MonitoredStore) List added in v0.6.0

func (m *MonitoredStore) List(ctx context.Context, pid *apiproject.ProjectID, ofs, l uint32) ([]*ListRecord, error)

func (*MonitoredStore) Setup added in v0.6.0

func (m *MonitoredStore) Setup(ctx context.Context) error

func (*MonitoredStore) Teardown added in v0.6.0

func (m *MonitoredStore) Teardown(ctx context.Context) error

func (*MonitoredStore) UpdateState added in v0.6.0

func (m *MonitoredStore) UpdateState(ctx context.Context, id apievent.EventID, s *apievent.EventState) error

func (*MonitoredStore) UpdateStateForProject added in v0.6.0

func (m *MonitoredStore) UpdateStateForProject(ctx context.Context, eid apievent.EventID, pid apiproject.ProjectID, s *apievent.ProjectEventState) error

type Store

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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