formatters

package
v0.5.0-dev14 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Snapshotter added in v0.4.0

type Snapshotter[T es.Projection] struct {
	// contains filtered or unexported fields
}

Snapshotter implements basic snapshot creation for audit formatters

func NewSnapshotter added in v0.4.0

func NewSnapshotter[T es.Projection](esClient esApi.EventStoreClient, projector es.Projector[T]) *Snapshotter[T]

func (*Snapshotter[T]) CreateSnapshot added in v0.4.0

func (s *Snapshotter[T]) CreateSnapshot(ctx context.Context, eventFilter *esApi.EventFilter) (T, error)

CreateSnapshot creates a snapshot based on an event-filter and the corresponding projector for the aggregate of which the id is used in the filter. This is a temporary implementation until snapshots are fully implemented, and it is not meant to be used extensively.

type UserSnapshotter added in v0.4.4

type UserSnapshotter struct {
	*Snapshotter[*projections.User]
}

UserSnapshotter implements basic snapshot creation for the user aggregate

func NewUserSnapshotter added in v0.4.4

func NewUserSnapshotter(esClient esApi.EventStoreClient, projector es.Projector[*projections.User]) *UserSnapshotter

func (*UserSnapshotter) CreateRoleBindingSnapshots added in v0.4.4

func (s *UserSnapshotter) CreateRoleBindingSnapshots(ctx context.Context, userId uuid.UUID, timestamp time.Time) []*projections.UserRoleBinding

CreateRoleBindingSnapshots returns a list of userRoleBinding snapshots for the user specified by its id This is a temporary implementation until snapshots are fully implemented, and it is not meant to be used extensively.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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