Documentation ¶
Index ¶
- type FakeProjection
- func (projection *FakeProjection) GetEventsToListen() []string
- func (projection *FakeProjection) GetLastHandledEventHeight() (*int64, error)
- func (projection *FakeProjection) HandleEvents(_ int64, _ []entity_event.Event) error
- func (projection *FakeProjection) Id() string
- func (projection *FakeProjection) OnInit() error
- type MockProjection
- func (projection *MockProjection) GetEventsToListen() []string
- func (projection *MockProjection) GetLastHandledEventHeight() (*int64, error)
- func (projection *MockProjection) HandleEvents(height int64, events []entity_event.Event) error
- func (projection *MockProjection) Id() string
- func (projection *MockProjection) OnInit() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeProjection ¶
type FakeProjection struct{}
func NewFakeProjection ¶
func NewFakeProjection() *FakeProjection
func (*FakeProjection) GetEventsToListen ¶
func (projection *FakeProjection) GetEventsToListen() []string
func (*FakeProjection) GetLastHandledEventHeight ¶
func (projection *FakeProjection) GetLastHandledEventHeight() (*int64, error)
func (*FakeProjection) HandleEvents ¶
func (projection *FakeProjection) HandleEvents(_ int64, _ []entity_event.Event) error
func (*FakeProjection) Id ¶
func (projection *FakeProjection) Id() string
func (*FakeProjection) OnInit ¶
func (projection *FakeProjection) OnInit() error
type MockProjection ¶
func NewMockProjection ¶
func NewMockProjection() *MockProjection
func (*MockProjection) GetEventsToListen ¶
func (projection *MockProjection) GetEventsToListen() []string
func (*MockProjection) GetLastHandledEventHeight ¶
func (projection *MockProjection) GetLastHandledEventHeight() (*int64, error)
func (*MockProjection) HandleEvents ¶
func (projection *MockProjection) HandleEvents(height int64, events []entity_event.Event) error
func (*MockProjection) Id ¶
func (projection *MockProjection) Id() string
func (*MockProjection) OnInit ¶
func (projection *MockProjection) OnInit() error
Click to show internal directories.
Click to hide internal directories.