client

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: 12 Imported by: 0

Documentation

Overview

Package client is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New() (client *Client, close func() error, err error)

func (*Client) Listen

func (c *Client) Listen(symbol string) (<-chan tick.Tick, error)

func (*Client) Register

func (c *Client) Register(ctx context.Context, exchange, symbol string) error

func (*Client) Unregister

func (c *Client) Unregister(ctx context.Context, exchange, symbol string) error

type Interfacer

type Interfacer interface {
	Register(ctx context.Context, exchange, symbol string) error
	Unregister(ctx context.Context, exchange, symbol string) error
	Listen(symbol string) (<-chan tick.Tick, error)
}

type MockInterfacer

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

MockInterfacer is a mock of Interfacer interface.

func NewMockInterfacer

func NewMockInterfacer(ctrl *gomock.Controller) *MockInterfacer

NewMockInterfacer creates a new mock instance.

func (*MockInterfacer) EXPECT

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

func (*MockInterfacer) Listen

func (m *MockInterfacer) Listen(symbol string) (<-chan tick.Tick, error)

Listen mocks base method.

func (*MockInterfacer) Register

func (m *MockInterfacer) Register(ctx context.Context, exchange, symbol string) error

Register mocks base method.

func (*MockInterfacer) Unregister

func (m *MockInterfacer) Unregister(ctx context.Context, exchange, symbol string) error

Unregister mocks base method.

type MockInterfacerMockRecorder

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

MockInterfacerMockRecorder is the mock recorder for MockInterfacer.

func (*MockInterfacerMockRecorder) Listen

func (mr *MockInterfacerMockRecorder) Listen(symbol interface{}) *gomock.Call

Listen indicates an expected call of Listen.

func (*MockInterfacerMockRecorder) Register

func (mr *MockInterfacerMockRecorder) Register(ctx, exchange, symbol interface{}) *gomock.Call

Register indicates an expected call of Register.

func (*MockInterfacerMockRecorder) Unregister

func (mr *MockInterfacerMockRecorder) Unregister(ctx, exchange, symbol interface{}) *gomock.Call

Unregister indicates an expected call of Unregister.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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