events

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package events is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestEventsClientSuite

func TestEventsClientSuite(t *testing.T)

Types

type EventsClientSuite

type EventsClientSuite struct {
	suite.Suite
	Client Port
}

func (*EventsClientSuite) TestOnePubOneSubObject

func (suite *EventsClientSuite) TestOnePubOneSubObject()

type MockPort

type MockPort struct {
	// contains filtered or unexported fields
}

MockPort is a mock of Port interface.

func NewMockPort

func NewMockPort(ctrl *gomock.Controller) *MockPort

NewMockPort creates a new mock instance.

func (*MockPort) Close

func (m *MockPort) Close(ctx context.Context)

Close mocks base method.

func (*MockPort) EXPECT

func (m *MockPort) EXPECT() *MockPortMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPort) Publish

func (m *MockPort) Publish(ctx context.Context, backtestID uint, event event.Event) error

Publish mocks base method.

func (*MockPort) Subscribe

func (m *MockPort) Subscribe(ctx context.Context, backtestID uint) (<-chan event.Event, error)

Subscribe mocks base method.

type MockPortMockRecorder

type MockPortMockRecorder struct {
	// contains filtered or unexported fields
}

MockPortMockRecorder is the mock recorder for MockPort.

func (*MockPortMockRecorder) Close

func (mr *MockPortMockRecorder) Close(ctx interface{}) *gomock.Call

Close indicates an expected call of Close.

func (*MockPortMockRecorder) Publish

func (mr *MockPortMockRecorder) Publish(ctx, backtestID, event interface{}) *gomock.Call

Publish indicates an expected call of Publish.

func (*MockPortMockRecorder) Subscribe

func (mr *MockPortMockRecorder) Subscribe(ctx, backtestID interface{}) *gomock.Call

Subscribe indicates an expected call of Subscribe.

type Port

type Port interface {
	Publish(ctx context.Context, backtestID uint, event event.Event) error
	Subscribe(ctx context.Context, backtestID uint) (<-chan event.Event, error)
	Close(ctx context.Context)
}

Jump to

Keyboard shortcuts

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