exchanges

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package exchanges is a generated GoMock package.

Index

Constants

View Source
const ListenSymbolActivityName = "ListenSymbolActivity"

ListenSymbolActivityName is the name of the activity to listen to a symbol.

Variables

View Source
var (
	// ErrInexistantExchange is the error when the exchange does not exist.
	ErrInexistantExchange = errors.New("inexistant exchange")
)

Functions

func DefaultActivityOptions

func DefaultActivityOptions() workflow.ActivityOptions

DefaultActivityOptions returns the default exchanges activities options.

Types

type Exchanges

type Exchanges interface {
	Name() string
	Register(w worker.Worker)

	ListenSymbolActivity(ctx context.Context, params ListenSymbolParams) (ListenSymbolResults, error)
}

Exchanges is the exchanges activities for ticks.

type ListenSymbolParams

type ListenSymbolParams struct {
	ParentWorkflowID string
	Exchange         string
	Symbol           string
}

ListenSymbolParams is the parameters for the ListenSymbolActivity.

type ListenSymbolResults

type ListenSymbolResults struct{}

ListenSymbolResults is the results for the ListenSymbolActivity.

type MockExchanges

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

MockExchanges is a mock of Exchanges interface.

func NewMockExchanges

func NewMockExchanges(ctrl *gomock.Controller) *MockExchanges

NewMockExchanges creates a new mock instance.

func (*MockExchanges) EXPECT

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

func (*MockExchanges) ListenSymbolActivity

func (m *MockExchanges) ListenSymbolActivity(ctx context.Context, params ListenSymbolParams) (ListenSymbolResults, error)

ListenSymbolActivity mocks base method.

func (*MockExchanges) Name

func (m *MockExchanges) Name() string

Name mocks base method.

func (*MockExchanges) Register

func (m *MockExchanges) Register(w worker.Worker)

Register mocks base method.

type MockExchangesMockRecorder

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

MockExchangesMockRecorder is the mock recorder for MockExchanges.

func (*MockExchangesMockRecorder) ListenSymbolActivity

func (mr *MockExchangesMockRecorder) ListenSymbolActivity(ctx, params interface{}) *gomock.Call

ListenSymbolActivity indicates an expected call of ListenSymbolActivity.

func (*MockExchangesMockRecorder) Name

Name indicates an expected call of Name.

func (*MockExchangesMockRecorder) Register

func (mr *MockExchangesMockRecorder) Register(w interface{}) *gomock.Call

Register indicates an expected call of Register.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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