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) ReadCandlesticks

func (c *Client) ReadCandlesticks(ctx context.Context, payload ReadCandlestickPayload) (*candlestick.List, error)

type Interfacer

type Interfacer interface {
	ReadCandlesticks(ctx context.Context, payload ReadCandlestickPayload) (*candlestick.List, 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) ReadCandlesticks

func (m *MockInterfacer) ReadCandlesticks(ctx context.Context, payload ReadCandlestickPayload) (*candlestick.List, error)

ReadCandlesticks mocks base method.

type MockInterfacerMockRecorder

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

MockInterfacerMockRecorder is the mock recorder for MockInterfacer.

func (*MockInterfacerMockRecorder) ReadCandlesticks

func (mr *MockInterfacerMockRecorder) ReadCandlesticks(ctx, payload interface{}) *gomock.Call

ReadCandlesticks indicates an expected call of ReadCandlesticks.

type ReadCandlestickPayload

type ReadCandlestickPayload struct {
	ExchangeName string
	PairSymbol   string
	Period       period.Symbol
	Start        time.Time
	End          time.Time
	Limit        uint
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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