Documentation
¶
Overview ¶
Package exchanges is a generated GoMock package.
Index ¶
Constants ¶
const (
// GetCandlesticksActivityName is the name of the GetCandlesticks activity.
GetCandlesticksActivityName = "GetCandlesticksActivity"
)
Variables ¶
var ( // ErrInexistantExchange is returned 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 {
Register(w worker.Worker)
Name() string
GetCandlesticksActivity(
ctx context.Context,
params GetCandlesticksActivityParams,
) (GetCandlesticksActivityResults, error)
}
Exchanges is the interface that defines the exchanges activities.
type GetCandlesticksActivityParams ¶
type GetCandlesticksActivityParams struct {
Exchange string
Pair string
Period period.Symbol
Start time.Time
End time.Time
Limit int
}
GetCandlesticksActivityParams is the parameters for the GetCandlesticks activity.
type GetCandlesticksActivityResults ¶
type GetCandlesticksActivityResults struct {
List *candlestick.List
}
GetCandlesticksActivityResults is the result for the GetCandlesticks activity.
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 ¶
func (m *MockExchanges) EXPECT() *MockExchangesMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockExchanges) GetCandlesticksActivity ¶
func (m *MockExchanges) GetCandlesticksActivity(ctx context.Context, params GetCandlesticksActivityParams) (GetCandlesticksActivityResults, error)
GetCandlesticksActivity 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) GetCandlesticksActivity ¶
func (mr *MockExchangesMockRecorder) GetCandlesticksActivity(ctx, params interface{}) *gomock.Call
GetCandlesticksActivity indicates an expected call of GetCandlesticksActivity.
func (*MockExchangesMockRecorder) Name ¶
func (mr *MockExchangesMockRecorder) Name() *gomock.Call
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.