go-api-boilerplate: github.com/vardius/go-api-boilerplate/pkg/eventstore Index | Files | Directories

package eventstore

import "github.com/vardius/go-api-boilerplate/pkg/eventstore"

Package eventstore provides interfaces along with helper functions

Index

Package Files

doc.go errors.go event_store.go

Variables

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

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

type EventStore Uses

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

PathSynopsis
dynamodbPackage memory provides dynamodb implementation of domain event store
memoryPackage memory provides memory implementation of domain event store

Package eventstore imports 3 packages (graph) and is imported by 4 packages. Updated 2020-08-04. Refresh now. Tools for package owners.