pubsub

package
v0.0.0-...-e7652ed Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package pubsub is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter interface {
	Publish(tick tick.Tick) error
	Subscribe(symbol string) (<-chan tick.Tick, error)
	Close()
}

type MockAdapter

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

MockAdapter is a mock of Adapter interface.

func NewMockAdapter

func NewMockAdapter(ctrl *gomock.Controller) *MockAdapter

NewMockAdapter creates a new mock instance.

func (*MockAdapter) Close

func (m *MockAdapter) Close()

Close mocks base method.

func (*MockAdapter) EXPECT

func (m *MockAdapter) EXPECT() *MockAdapterMockRecorder

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

func (*MockAdapter) Publish

func (m *MockAdapter) Publish(tick tick.Tick) error

Publish mocks base method.

func (*MockAdapter) Subscribe

func (m *MockAdapter) Subscribe(symbol string) (<-chan tick.Tick, error)

Subscribe mocks base method.

type MockAdapterMockRecorder

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

MockAdapterMockRecorder is the mock recorder for MockAdapter.

func (*MockAdapterMockRecorder) Close

func (mr *MockAdapterMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockAdapterMockRecorder) Publish

func (mr *MockAdapterMockRecorder) Publish(tick interface{}) *gomock.Call

Publish indicates an expected call of Publish.

func (*MockAdapterMockRecorder) Subscribe

func (mr *MockAdapterMockRecorder) Subscribe(symbol interface{}) *gomock.Call

Subscribe indicates an expected call of Subscribe.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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