eventstore

package module
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

README

eventstore-lib

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Repository repository.Repository
}

type Eventstore

type Eventstore interface {
	Health(ctx context.Context) error

	PushEvents(ctx context.Context, events ...models.Aggregate) error
	Filter(ctx context.Context, events models.Events, query models.SearchQuery) error
}

func Start

func Start(conf Config) Eventstore

type Service

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

func (*Service) Filter

func (es *Service) Filter(ctx context.Context, events models.Events, query models.SearchQuery) (err error)

func (*Service) Health

func (es *Service) Health(ctx context.Context) error

func (*Service) PushEvents

func (es *Service) PushEvents(ctx context.Context, aggregates ...models.Aggregate) (err error)

Directories

Path Synopsis
pkg
models/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
repository/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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