models

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aggregate

type Aggregate interface {
	Type() string
	ID() string
	Events() Events
	LatestSequence() uint64
}

type Event

type Event interface{}

Event represents the minimal representation of an eventstore event

type Events

type Events interface {
	Len() int
	Get(index int) Event
	GetAll() []Event
	Append(events Event)
	Insert(position int, event Event)
}

Events is an abstraction for a slice of events.

type Field

type Field int32

type Filter

type Filter interface {
	GetField() Field
	GetOperation() Operation
	GetValue() interface{}
}

type Operation

type Operation int32

type SearchQuery

type SearchQuery interface {
	Limit() uint64
	OrderDesc() bool
	Filters() []Filter
}

Directories

Path Synopsis
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