Documentation
¶
Overview ¶
Package testutil is a generated protocol buffer package.
It is generated from these files:
pkg/fes/testutil/testutil.proto
It has these top-level messages:
DummyEvent
Index ¶
Constants ¶
View Source
const (
MockEntityType = "mock_entity"
)
Variables ¶
View Source
var Projector = &EntityProjector{}
Functions ¶
func CreateDummyEvent ¶
func CreateDummyEvent(key fes.Aggregate, payload *DummyEvent) *fes.Event
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
Backend is a stub implementation of a fes.Backend
func NewBackend ¶
func NewBackend() *Backend
type Cache ¶
type Cache struct { Name string // contains filtered or unexported fields }
Cache provides a thread-safe, memory-unrestricted map-based CacheReaderWriter implementation.
func (*Cache) GetAggregate ¶
func (*Cache) Invalidate ¶
type DummyEvent ¶
type DummyEvent struct {
Msg string `protobuf:"bytes,1,opt,name=msg" json:"msg,omitempty"`
}
DummyEvent is a stub implementation of a fes.Event
func (*DummyEvent) Descriptor ¶
func (*DummyEvent) Descriptor() ([]byte, []int)
func (*DummyEvent) GetMsg ¶
func (m *DummyEvent) GetMsg() string
func (*DummyEvent) ProtoMessage ¶
func (*DummyEvent) ProtoMessage()
func (*DummyEvent) Reset ¶
func (m *DummyEvent) Reset()
func (*DummyEvent) String ¶
func (m *DummyEvent) String() string
type MockEntity ¶
MockEntity is a stub implementation of a fes.Entity, which simply appends all contents of the DummyEvents it receives.
func (*MockEntity) Clone ¶
func (e *MockEntity) Clone() *MockEntity
func (*MockEntity) ID ¶
func (e *MockEntity) ID() string
func (*MockEntity) Type ¶
func (e *MockEntity) Type() string
Click to show internal directories.
Click to hide internal directories.