eventstore

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2020 License: MIT Imports: 3 Imported by: 0

README

eventstore GoDoc

Package eventstore provides event store interfaces Download:

go get -u github.com/vardius/go-api-boilerplate/pkg/eventstore

Package eventstore provides event store interfaces

Documentation

Overview

Package eventstore provides interfaces along with helper functions

Index

Constants

This section is empty.

Variables

View Source
var ErrEventNotFound = fmt.Errorf("event not found")

ErrEventNotFound is thrown when an event is not found in the store.

Functions

This section is empty.

Types

type EventStore

type EventStore interface {
	Store([]domain.Event) error
	Get(uuid.UUID) (domain.Event, error)
	FindAll() []domain.Event
	GetStream(uuid.UUID, string) []domain.Event
}

EventStore methods allow to save, load events and event streams

Directories

Path Synopsis
Package memory provides dynamodb implementation of domain event store
Package memory provides dynamodb implementation of domain event store
Package memory provides memory implementation of domain event store
Package memory provides memory implementation of domain event store

Jump to

Keyboard shortcuts

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