Documentation
¶
Overview ¶
Package exchanges is a generated GoMock package.
Index ¶
- Constants
- Variables
- func DefaultActivityOptions() workflow.ActivityOptions
- type Exchanges
- type GetExchangeActivityParams
- type GetExchangeActivityResults
- type ListExchangesActivityParams
- type ListExchangesActivityResults
- type MockExchanges
- func (m *MockExchanges) EXPECT() *MockExchangesMockRecorder
- func (m *MockExchanges) GetExchangeActivity(ctx context.Context, params GetExchangeActivityParams) (GetExchangeActivityResults, error)
- func (m *MockExchanges) ListExchangesActivity(ctx context.Context, params ListExchangesActivityParams) (ListExchangesActivityResults, error)
- func (m *MockExchanges) Name() string
- func (m *MockExchanges) Register(w worker.Worker)
- type MockExchangesMockRecorder
- func (mr *MockExchangesMockRecorder) GetExchangeActivity(ctx, params interface{}) *gomock.Call
- func (mr *MockExchangesMockRecorder) ListExchangesActivity(ctx, params interface{}) *gomock.Call
- func (mr *MockExchangesMockRecorder) Name() *gomock.Call
- func (mr *MockExchangesMockRecorder) Register(w interface{}) *gomock.Call
Constants ¶
const GetExchangeActivityName = "GetExchangeActivity"
GetExchangeActivityName is the name of the GetExchange activity.
const ListExchangesActivityName = "ListExchangesActivity"
ListExchangesActivityName is the name of the ListExchanges activity.
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
GetExchangeActivity(
ctx context.Context,
params GetExchangeActivityParams,
) (GetExchangeActivityResults, error)
ListExchangesActivity(
ctx context.Context,
params ListExchangesActivityParams,
) (ListExchangesActivityResults, error)
}
Exchanges is the interface for the exchanges activities.
type GetExchangeActivityParams ¶
type GetExchangeActivityParams struct {
Name string
}
GetExchangeActivityParams is the parameters for the GetExchange activity.
type GetExchangeActivityResults ¶
GetExchangeActivityResults is the result for the GetExchange activity.
type ListExchangesActivityParams ¶
type ListExchangesActivityParams struct{}
ListExchangesActivityParams is the parameters for the ListExchangesActivity activity.
type ListExchangesActivityResults ¶
type ListExchangesActivityResults struct {
List []string
}
ListExchangesActivityResults is the result for the ListExchangesActivity 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) GetExchangeActivity ¶
func (m *MockExchanges) GetExchangeActivity(ctx context.Context, params GetExchangeActivityParams) (GetExchangeActivityResults, error)
GetExchangeActivity mocks base method.
func (*MockExchanges) ListExchangesActivity ¶
func (m *MockExchanges) ListExchangesActivity(ctx context.Context, params ListExchangesActivityParams) (ListExchangesActivityResults, error)
ListExchangesActivity 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) GetExchangeActivity ¶
func (mr *MockExchangesMockRecorder) GetExchangeActivity(ctx, params interface{}) *gomock.Call
GetExchangeActivity indicates an expected call of GetExchangeActivity.
func (*MockExchangesMockRecorder) ListExchangesActivity ¶
func (mr *MockExchangesMockRecorder) ListExchangesActivity(ctx, params interface{}) *gomock.Call
ListExchangesActivity indicates an expected call of ListExchangesActivity.
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.