eventsourcing

package
v0.0.0-...-7f6477a Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

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

func NewEvent

func NewEvent(s string) Event

func (*Event) Name

func (e *Event) Name() string

func (*Event) Payload

func (e *Event) Payload() map[string]interface{}

type EventStream

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

func NewStream

func NewStream() *EventStream

func Recreate

func Recreate(stream []Event) *EventStream

func RecreateFromFile

func RecreateFromFile(filePath string) *EventStream

func (*EventStream) Add

func (es *EventStream) Add(e Event)

func (*EventStream) Count

func (es *EventStream) Count() int

func (*EventStream) HasEvents

func (es *EventStream) HasEvents() bool

func (*EventStream) Persist

func (es *EventStream) Persist(output string)

func (*EventStream) Stream

func (es *EventStream) Stream() []Event

Jump to

Keyboard shortcuts

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