projection

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2020 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDiskSnapshotStore added in v0.4.0

func NewDiskSnapshotStore(basePath string) *diskSnapshotStore

Types

type AggregateTypeStats

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

func NewAggregateTypeStats

func NewAggregateTypeStats() *AggregateTypeStats

func (*AggregateTypeStats) Accept

func (a *AggregateTypeStats) Accept(record *rangedb.Record)

func (*AggregateTypeStats) LatestGlobalSequenceNumber added in v0.4.0

func (a *AggregateTypeStats) LatestGlobalSequenceNumber() uint64

func (*AggregateTypeStats) LoadFromSnapshot added in v0.4.0

func (a *AggregateTypeStats) LoadFromSnapshot(r io.Reader) error

func (*AggregateTypeStats) SaveSnapshot added in v0.4.0

func (a *AggregateTypeStats) SaveSnapshot(w io.Writer) error

func (*AggregateTypeStats) SnapshotName added in v0.4.0

func (a *AggregateTypeStats) SnapshotName() string

func (*AggregateTypeStats) SortedAggregateTypes

func (a *AggregateTypeStats) SortedAggregateTypes() []string

func (*AggregateTypeStats) TotalEvents added in v0.4.0

func (a *AggregateTypeStats) TotalEvents() uint64

func (*AggregateTypeStats) TotalEventsByAggregateType

func (a *AggregateTypeStats) TotalEventsByAggregateType(aggregateType string) uint64

type SnapshotProjection added in v0.4.0

type SnapshotProjection interface {
	SnapshotName() string
	SaveSnapshot(w io.Writer) error
	LoadFromSnapshot(r io.Reader) error
}

type SnapshotStore added in v0.4.0

type SnapshotStore interface {
	Load(projection SnapshotProjection) error
	Save(projection SnapshotProjection) error
}

Jump to

Keyboard shortcuts

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