test

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntityCreatedEvent

type EntityCreatedEvent struct {
	goeh.EventData
	CreateTime string `json:"createTime"`
	Version    int32  `json:"version"`
	Message    string `json:"message"`
}

EntityCreatedEvent ...

func (*EntityCreatedEvent) GetType

func (e *EntityCreatedEvent) GetType() string

GetType ...

type MockEntity

type MockEntity struct {
	ID string

	Message string
}

MockEntity ,,,

func (*MockEntity) GetId

func (e *MockEntity) GetId() string

GetId ...

type MockProvider

type MockProvider struct {
	Events []goeh.Event
	// contains filtered or unexported fields
}

MockProvider ...

func (*MockProvider) Close added in v0.2.1

func (p *MockProvider) Close()

Close ...

func (*MockProvider) FetchAllEvents

func (p *MockProvider) FetchAllEvents(batch int) (<-chan []goeh.Event, error)

FetchAllEvents ...

func (*MockProvider) SendEvents

func (p *MockProvider) SendEvents(events []goeh.Event) error

SendEvents ...

func (*MockProvider) SetInitEvents

func (p *MockProvider) SetInitEvents(events []goeh.Event)

SetInitEvents ...

type MockRepository

type MockRepository struct {
	*cerk.MemoryRepository
}

MockRepository ...

func (*MockRepository) CreateFakeEvent

func (r *MockRepository) CreateFakeEvent()

CreateFakeEvent

func (*MockRepository) Replay

func (r *MockRepository) Replay(events []goeh.Event) error

Replay ...

Jump to

Keyboard shortcuts

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