Documentation ¶
Index ¶
- type ConsensusService
- type ConsensusService_ConsensusStatus_Call
- func (_c *ConsensusService_ConsensusStatus_Call) Return(_a0 *api.ConsensusStatus, _a1 error) *ConsensusService_ConsensusStatus_Call
- func (_c *ConsensusService_ConsensusStatus_Call) Run(run func(ctx context.Context, opts api.ConsensusStatusOptions)) *ConsensusService_ConsensusStatus_Call
- func (_c *ConsensusService_ConsensusStatus_Call) RunAndReturn(...) *ConsensusService_ConsensusStatus_Call
- type ConsensusService_Expecter
- type EventService
- type EventService_Expecter
- type EventService_Subscribe_Call
- func (_c *EventService_Subscribe_Call) Return(_a0 <-chan api.Event, _a1 error) *EventService_Subscribe_Call
- func (_c *EventService_Subscribe_Call) Run(run func(ctx context.Context, opts api.SubscribeOptions)) *EventService_Subscribe_Call
- func (_c *EventService_Subscribe_Call) RunAndReturn(run func(context.Context, api.SubscribeOptions) (<-chan api.Event, error)) *EventService_Subscribe_Call
- type MetricsService
- type MetricsService_Expecter
- type MetricsService_Metrics_Call
- func (_c *MetricsService_Metrics_Call) Return(_a0 *api.Metrics, _a1 error) *MetricsService_Metrics_Call
- func (_c *MetricsService_Metrics_Call) Run(run func(ctx context.Context, opts api.MetricsOptions)) *MetricsService_Metrics_Call
- func (_c *MetricsService_Metrics_Call) RunAndReturn(run func(context.Context, api.MetricsOptions) (*api.Metrics, error)) *MetricsService_Metrics_Call
- type NetworkService
- type NetworkService_Expecter
- type NetworkService_NetworkStatus_Call
- func (_c *NetworkService_NetworkStatus_Call) Return(_a0 *api.NetworkStatus, _a1 error) *NetworkService_NetworkStatus_Call
- func (_c *NetworkService_NetworkStatus_Call) Run(run func(ctx context.Context, opts api.NetworkStatusOptions)) *NetworkService_NetworkStatus_Call
- func (_c *NetworkService_NetworkStatus_Call) RunAndReturn(...) *NetworkService_NetworkStatus_Call
- type NodeService
- type NodeService_Expecter
- type NodeService_FindService_Call
- func (_c *NodeService_FindService_Call) Return(_a0 []*api.FindServiceResult, _a1 error) *NodeService_FindService_Call
- func (_c *NodeService_FindService_Call) Run(run func(ctx context.Context, opts api.FindServiceOptions)) *NodeService_FindService_Call
- func (_c *NodeService_FindService_Call) RunAndReturn(...) *NodeService_FindService_Call
- type NodeService_NodeInfo_Call
- func (_c *NodeService_NodeInfo_Call) Return(_a0 *api.NodeInfo, _a1 error) *NodeService_NodeInfo_Call
- func (_c *NodeService_NodeInfo_Call) Run(run func(ctx context.Context, opts api.NodeInfoOptions)) *NodeService_NodeInfo_Call
- func (_c *NodeService_NodeInfo_Call) RunAndReturn(run func(context.Context, api.NodeInfoOptions) (*api.NodeInfo, error)) *NodeService_NodeInfo_Call
- type Querier
- type Querier_Expecter
- type Querier_Query_Call
- func (_c *Querier_Query_Call) Return(_a0 api.Record, _a1 error) *Querier_Query_Call
- func (_c *Querier_Query_Call) Run(run func(ctx context.Context, scope *url.URL, query api.Query)) *Querier_Query_Call
- func (_c *Querier_Query_Call) RunAndReturn(run func(context.Context, *url.URL, api.Query) (api.Record, error)) *Querier_Query_Call
- type Submitter
- type Submitter_Expecter
- type Submitter_Submit_Call
- type Validator
- type Validator_Expecter
- type Validator_Validate_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsensusService ¶
ConsensusService is an autogenerated mock type for the ConsensusService type
func NewConsensusService ¶
func NewConsensusService(t mockConstructorTestingTNewConsensusService) *ConsensusService
NewConsensusService creates a new instance of ConsensusService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ConsensusService) ConsensusStatus ¶
func (_m *ConsensusService) ConsensusStatus(ctx context.Context, opts api.ConsensusStatusOptions) (*api.ConsensusStatus, error)
ConsensusStatus provides a mock function with given fields: ctx, opts
func (*ConsensusService) EXPECT ¶
func (_m *ConsensusService) EXPECT() *ConsensusService_Expecter
type ConsensusService_ConsensusStatus_Call ¶
ConsensusService_ConsensusStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ConsensusStatus'
func (*ConsensusService_ConsensusStatus_Call) Return ¶
func (_c *ConsensusService_ConsensusStatus_Call) Return(_a0 *api.ConsensusStatus, _a1 error) *ConsensusService_ConsensusStatus_Call
func (*ConsensusService_ConsensusStatus_Call) Run ¶
func (_c *ConsensusService_ConsensusStatus_Call) Run(run func(ctx context.Context, opts api.ConsensusStatusOptions)) *ConsensusService_ConsensusStatus_Call
func (*ConsensusService_ConsensusStatus_Call) RunAndReturn ¶ added in v1.2.5
func (_c *ConsensusService_ConsensusStatus_Call) RunAndReturn(run func(context.Context, api.ConsensusStatusOptions) (*api.ConsensusStatus, error)) *ConsensusService_ConsensusStatus_Call
type ConsensusService_Expecter ¶
type ConsensusService_Expecter struct {
// contains filtered or unexported fields
}
func (*ConsensusService_Expecter) ConsensusStatus ¶
func (_e *ConsensusService_Expecter) ConsensusStatus(ctx interface{}, opts interface{}) *ConsensusService_ConsensusStatus_Call
ConsensusStatus is a helper method to define mock.On call
- ctx context.Context
- opts api.ConsensusStatusOptions
type EventService ¶
EventService is an autogenerated mock type for the EventService type
func NewEventService ¶
func NewEventService(t mockConstructorTestingTNewEventService) *EventService
NewEventService creates a new instance of EventService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*EventService) EXPECT ¶
func (_m *EventService) EXPECT() *EventService_Expecter
func (*EventService) Subscribe ¶
func (_m *EventService) Subscribe(ctx context.Context, opts api.SubscribeOptions) (<-chan api.Event, error)
Subscribe provides a mock function with given fields: ctx, opts
type EventService_Expecter ¶
type EventService_Expecter struct {
// contains filtered or unexported fields
}
func (*EventService_Expecter) Subscribe ¶
func (_e *EventService_Expecter) Subscribe(ctx interface{}, opts interface{}) *EventService_Subscribe_Call
Subscribe is a helper method to define mock.On call
- ctx context.Context
- opts api.SubscribeOptions
type EventService_Subscribe_Call ¶
EventService_Subscribe_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Subscribe'
func (*EventService_Subscribe_Call) Return ¶
func (_c *EventService_Subscribe_Call) Return(_a0 <-chan api.Event, _a1 error) *EventService_Subscribe_Call
func (*EventService_Subscribe_Call) Run ¶
func (_c *EventService_Subscribe_Call) Run(run func(ctx context.Context, opts api.SubscribeOptions)) *EventService_Subscribe_Call
func (*EventService_Subscribe_Call) RunAndReturn ¶ added in v1.2.5
func (_c *EventService_Subscribe_Call) RunAndReturn(run func(context.Context, api.SubscribeOptions) (<-chan api.Event, error)) *EventService_Subscribe_Call
type MetricsService ¶
MetricsService is an autogenerated mock type for the MetricsService type
func NewMetricsService ¶
func NewMetricsService(t mockConstructorTestingTNewMetricsService) *MetricsService
NewMetricsService creates a new instance of MetricsService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MetricsService) EXPECT ¶
func (_m *MetricsService) EXPECT() *MetricsService_Expecter
func (*MetricsService) Metrics ¶
func (_m *MetricsService) Metrics(ctx context.Context, opts api.MetricsOptions) (*api.Metrics, error)
Metrics provides a mock function with given fields: ctx, opts
type MetricsService_Expecter ¶
type MetricsService_Expecter struct {
// contains filtered or unexported fields
}
func (*MetricsService_Expecter) Metrics ¶
func (_e *MetricsService_Expecter) Metrics(ctx interface{}, opts interface{}) *MetricsService_Metrics_Call
Metrics is a helper method to define mock.On call
- ctx context.Context
- opts api.MetricsOptions
type MetricsService_Metrics_Call ¶
MetricsService_Metrics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Metrics'
func (*MetricsService_Metrics_Call) Return ¶
func (_c *MetricsService_Metrics_Call) Return(_a0 *api.Metrics, _a1 error) *MetricsService_Metrics_Call
func (*MetricsService_Metrics_Call) Run ¶
func (_c *MetricsService_Metrics_Call) Run(run func(ctx context.Context, opts api.MetricsOptions)) *MetricsService_Metrics_Call
func (*MetricsService_Metrics_Call) RunAndReturn ¶ added in v1.2.5
func (_c *MetricsService_Metrics_Call) RunAndReturn(run func(context.Context, api.MetricsOptions) (*api.Metrics, error)) *MetricsService_Metrics_Call
type NetworkService ¶
NetworkService is an autogenerated mock type for the NetworkService type
func NewNetworkService ¶
func NewNetworkService(t mockConstructorTestingTNewNetworkService) *NetworkService
NewNetworkService creates a new instance of NetworkService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*NetworkService) EXPECT ¶
func (_m *NetworkService) EXPECT() *NetworkService_Expecter
func (*NetworkService) NetworkStatus ¶
func (_m *NetworkService) NetworkStatus(ctx context.Context, opts api.NetworkStatusOptions) (*api.NetworkStatus, error)
NetworkStatus provides a mock function with given fields: ctx, opts
type NetworkService_Expecter ¶
type NetworkService_Expecter struct {
// contains filtered or unexported fields
}
func (*NetworkService_Expecter) NetworkStatus ¶
func (_e *NetworkService_Expecter) NetworkStatus(ctx interface{}, opts interface{}) *NetworkService_NetworkStatus_Call
NetworkStatus is a helper method to define mock.On call
- ctx context.Context
- opts api.NetworkStatusOptions
type NetworkService_NetworkStatus_Call ¶
NetworkService_NetworkStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NetworkStatus'
func (*NetworkService_NetworkStatus_Call) Return ¶
func (_c *NetworkService_NetworkStatus_Call) Return(_a0 *api.NetworkStatus, _a1 error) *NetworkService_NetworkStatus_Call
func (*NetworkService_NetworkStatus_Call) Run ¶
func (_c *NetworkService_NetworkStatus_Call) Run(run func(ctx context.Context, opts api.NetworkStatusOptions)) *NetworkService_NetworkStatus_Call
func (*NetworkService_NetworkStatus_Call) RunAndReturn ¶ added in v1.2.5
func (_c *NetworkService_NetworkStatus_Call) RunAndReturn(run func(context.Context, api.NetworkStatusOptions) (*api.NetworkStatus, error)) *NetworkService_NetworkStatus_Call
type NodeService ¶ added in v1.2.10
NodeService is an autogenerated mock type for the NodeService type
func NewNodeService ¶ added in v1.2.10
func NewNodeService(t mockConstructorTestingTNewNodeService) *NodeService
NewNodeService creates a new instance of NodeService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*NodeService) EXPECT ¶ added in v1.2.10
func (_m *NodeService) EXPECT() *NodeService_Expecter
func (*NodeService) FindService ¶ added in v1.2.10
func (_m *NodeService) FindService(ctx context.Context, opts api.FindServiceOptions) ([]*api.FindServiceResult, error)
FindService provides a mock function with given fields: ctx, opts
func (*NodeService) NodeInfo ¶ added in v1.2.10
func (_m *NodeService) NodeInfo(ctx context.Context, opts api.NodeInfoOptions) (*api.NodeInfo, error)
NodeInfo provides a mock function with given fields: ctx, opts
type NodeService_Expecter ¶ added in v1.2.10
type NodeService_Expecter struct {
// contains filtered or unexported fields
}
func (*NodeService_Expecter) FindService ¶ added in v1.2.10
func (_e *NodeService_Expecter) FindService(ctx interface{}, opts interface{}) *NodeService_FindService_Call
FindService is a helper method to define mock.On call
- ctx context.Context
- opts api.FindServiceOptions
func (*NodeService_Expecter) NodeInfo ¶ added in v1.2.10
func (_e *NodeService_Expecter) NodeInfo(ctx interface{}, opts interface{}) *NodeService_NodeInfo_Call
NodeInfo is a helper method to define mock.On call
- ctx context.Context
- opts api.NodeInfoOptions
type NodeService_FindService_Call ¶ added in v1.2.10
NodeService_FindService_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindService'
func (*NodeService_FindService_Call) Return ¶ added in v1.2.10
func (_c *NodeService_FindService_Call) Return(_a0 []*api.FindServiceResult, _a1 error) *NodeService_FindService_Call
func (*NodeService_FindService_Call) Run ¶ added in v1.2.10
func (_c *NodeService_FindService_Call) Run(run func(ctx context.Context, opts api.FindServiceOptions)) *NodeService_FindService_Call
func (*NodeService_FindService_Call) RunAndReturn ¶ added in v1.2.10
func (_c *NodeService_FindService_Call) RunAndReturn(run func(context.Context, api.FindServiceOptions) ([]*api.FindServiceResult, error)) *NodeService_FindService_Call
type NodeService_NodeInfo_Call ¶ added in v1.2.10
NodeService_NodeInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NodeInfo'
func (*NodeService_NodeInfo_Call) Return ¶ added in v1.2.10
func (_c *NodeService_NodeInfo_Call) Return(_a0 *api.NodeInfo, _a1 error) *NodeService_NodeInfo_Call
func (*NodeService_NodeInfo_Call) Run ¶ added in v1.2.10
func (_c *NodeService_NodeInfo_Call) Run(run func(ctx context.Context, opts api.NodeInfoOptions)) *NodeService_NodeInfo_Call
func (*NodeService_NodeInfo_Call) RunAndReturn ¶ added in v1.2.10
func (_c *NodeService_NodeInfo_Call) RunAndReturn(run func(context.Context, api.NodeInfoOptions) (*api.NodeInfo, error)) *NodeService_NodeInfo_Call
type Querier ¶
Querier is an autogenerated mock type for the Querier type
func NewQuerier ¶
func NewQuerier(t mockConstructorTestingTNewQuerier) *Querier
NewQuerier creates a new instance of Querier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Querier) EXPECT ¶
func (_m *Querier) EXPECT() *Querier_Expecter
type Querier_Expecter ¶
type Querier_Expecter struct {
// contains filtered or unexported fields
}
func (*Querier_Expecter) Query ¶
func (_e *Querier_Expecter) Query(ctx interface{}, scope interface{}, query interface{}) *Querier_Query_Call
Query is a helper method to define mock.On call
- ctx context.Context
- scope *url.URL
- query api.Query
type Querier_Query_Call ¶
Querier_Query_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Query'
func (*Querier_Query_Call) Return ¶
func (_c *Querier_Query_Call) Return(_a0 api.Record, _a1 error) *Querier_Query_Call
func (*Querier_Query_Call) Run ¶
func (_c *Querier_Query_Call) Run(run func(ctx context.Context, scope *url.URL, query api.Query)) *Querier_Query_Call
func (*Querier_Query_Call) RunAndReturn ¶ added in v1.2.5
type Submitter ¶
Submitter is an autogenerated mock type for the Submitter type
func NewSubmitter ¶
func NewSubmitter(t mockConstructorTestingTNewSubmitter) *Submitter
NewSubmitter creates a new instance of Submitter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Submitter) EXPECT ¶
func (_m *Submitter) EXPECT() *Submitter_Expecter
type Submitter_Expecter ¶
type Submitter_Expecter struct {
// contains filtered or unexported fields
}
func (*Submitter_Expecter) Submit ¶
func (_e *Submitter_Expecter) Submit(ctx interface{}, envelope interface{}, opts interface{}) *Submitter_Submit_Call
Submit is a helper method to define mock.On call
- ctx context.Context
- envelope *messaging.Envelope
- opts api.SubmitOptions
type Submitter_Submit_Call ¶
Submitter_Submit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Submit'
func (*Submitter_Submit_Call) Return ¶
func (_c *Submitter_Submit_Call) Return(_a0 []*api.Submission, _a1 error) *Submitter_Submit_Call
func (*Submitter_Submit_Call) Run ¶
func (_c *Submitter_Submit_Call) Run(run func(ctx context.Context, envelope *messaging.Envelope, opts api.SubmitOptions)) *Submitter_Submit_Call
func (*Submitter_Submit_Call) RunAndReturn ¶ added in v1.2.5
func (_c *Submitter_Submit_Call) RunAndReturn(run func(context.Context, *messaging.Envelope, api.SubmitOptions) ([]*api.Submission, error)) *Submitter_Submit_Call
type Validator ¶
Validator is an autogenerated mock type for the Validator type
func NewValidator ¶
func NewValidator(t mockConstructorTestingTNewValidator) *Validator
NewValidator creates a new instance of Validator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Validator) EXPECT ¶
func (_m *Validator) EXPECT() *Validator_Expecter
type Validator_Expecter ¶
type Validator_Expecter struct {
// contains filtered or unexported fields
}
func (*Validator_Expecter) Validate ¶
func (_e *Validator_Expecter) Validate(ctx interface{}, envelope interface{}, opts interface{}) *Validator_Validate_Call
Validate is a helper method to define mock.On call
- ctx context.Context
- envelope *messaging.Envelope
- opts api.ValidateOptions
type Validator_Validate_Call ¶
Validator_Validate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Validate'
func (*Validator_Validate_Call) Return ¶
func (_c *Validator_Validate_Call) Return(_a0 []*api.Submission, _a1 error) *Validator_Validate_Call
func (*Validator_Validate_Call) Run ¶
func (_c *Validator_Validate_Call) Run(run func(ctx context.Context, envelope *messaging.Envelope, opts api.ValidateOptions)) *Validator_Validate_Call
func (*Validator_Validate_Call) RunAndReturn ¶ added in v1.2.5
func (_c *Validator_Validate_Call) RunAndReturn(run func(context.Context, *messaging.Envelope, api.ValidateOptions) ([]*api.Submission, error)) *Validator_Validate_Call