eventstore

package
v0.0.0-...-3fe642c Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2017 License: Apache-2.0 Imports: 1 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 {
	ID        string           `json:"id"`
	Version   int64            `json:"version"`
	Type      string           `json:"type"`
	Timestamp int64            `json:"timestamp"`
	Data      *json.RawMessage `json:"data,omitempty"`
	Snapshot  *json.RawMessage `json:"snapshot,omitempty"`
}

Event an event store record

type EventStore

type EventStore interface {
	Query(string) (Events, error)
	QueryByEventType(string) (Events, error)
	Put(string, int64, Event) error
	Snapshot(Event, interface{}) error
	Refresh() error
}

EventStore component that manages system events.

type Events

type Events []Event

Events list of Event

func (Events) Len

func (e Events) Len() int

func (Events) Less

func (e Events) Less(i, j int) bool

func (Events) Swap

func (e Events) Swap(i, j int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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