state_store

package
v0.0.33 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: MIT Imports: 4 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Core *store.Options
	Name string
}

func NewOptions

func NewOptions() *Options

type PipelineState

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

func NewPipelineState

func NewPipelineState(ss *StateStore, pipelineID uint64) *PipelineState

func (*PipelineState) Flush added in v0.0.18

func (ps *PipelineState) Flush() error

func (*PipelineState) GetLastSequence

func (ps *PipelineState) GetLastSequence() uint64

func (*PipelineState) Initialize

func (ps *PipelineState) Initialize() error

func (*PipelineState) UpdateLastSequence

func (ps *PipelineState) UpdateLastSequence(lastSeq uint64) error

type StateStore

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

func NewStateStore

func NewStateStore(options *Options) *StateStore

func NewStateStoreWithStore added in v0.0.8

func NewStateStoreWithStore(gravityStore *store.Store, options *Options) *StateStore

func (*StateStore) GetPipelineState

func (ss *StateStore) GetPipelineState(pipelineID uint64) (gravity_subscriber.PipelineState, error)

func (*StateStore) GetPipelines

func (ss *StateStore) GetPipelines() []uint64

func (*StateStore) Initialize

func (ss *StateStore) Initialize() error

Jump to

Keyboard shortcuts

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