Documentation
¶
Index ¶
- type ConnectionFactory
- func (_m *ConnectionFactory) EXPECT() *ConnectionFactory_Expecter
- func (_mock *ConnectionFactory) GetAccessAPIClientWithPort(address string, networkPubKey crypto.PublicKey) (access.AccessAPIClient, io.Closer, error)
- func (_mock *ConnectionFactory) GetCollectionAPIClient(address string, networkPubKey crypto.PublicKey) (access.AccessAPIClient, io.Closer, error)
- func (_mock *ConnectionFactory) GetExecutionAPIClient(address string) (execution.ExecutionAPIClient, io.Closer, error)
- type ConnectionFactory_Expecter
- func (_e *ConnectionFactory_Expecter) GetAccessAPIClientWithPort(address interface{}, networkPubKey interface{}) *ConnectionFactory_GetAccessAPIClientWithPort_Call
- func (_e *ConnectionFactory_Expecter) GetCollectionAPIClient(address interface{}, networkPubKey interface{}) *ConnectionFactory_GetCollectionAPIClient_Call
- func (_e *ConnectionFactory_Expecter) GetExecutionAPIClient(address interface{}) *ConnectionFactory_GetExecutionAPIClient_Call
- type ConnectionFactory_GetAccessAPIClientWithPort_Call
- func (_c *ConnectionFactory_GetAccessAPIClientWithPort_Call) Return(accessAPIClient access.AccessAPIClient, closer io.Closer, err error) *ConnectionFactory_GetAccessAPIClientWithPort_Call
- func (_c *ConnectionFactory_GetAccessAPIClientWithPort_Call) Run(run func(address string, networkPubKey crypto.PublicKey)) *ConnectionFactory_GetAccessAPIClientWithPort_Call
- func (_c *ConnectionFactory_GetAccessAPIClientWithPort_Call) RunAndReturn(...) *ConnectionFactory_GetAccessAPIClientWithPort_Call
- type ConnectionFactory_GetCollectionAPIClient_Call
- func (_c *ConnectionFactory_GetCollectionAPIClient_Call) Return(accessAPIClient access.AccessAPIClient, closer io.Closer, err error) *ConnectionFactory_GetCollectionAPIClient_Call
- func (_c *ConnectionFactory_GetCollectionAPIClient_Call) Run(run func(address string, networkPubKey crypto.PublicKey)) *ConnectionFactory_GetCollectionAPIClient_Call
- func (_c *ConnectionFactory_GetCollectionAPIClient_Call) RunAndReturn(...) *ConnectionFactory_GetCollectionAPIClient_Call
- type ConnectionFactory_GetExecutionAPIClient_Call
- func (_c *ConnectionFactory_GetExecutionAPIClient_Call) Return(executionAPIClient execution.ExecutionAPIClient, closer io.Closer, err error) *ConnectionFactory_GetExecutionAPIClient_Call
- func (_c *ConnectionFactory_GetExecutionAPIClient_Call) Run(run func(address string)) *ConnectionFactory_GetExecutionAPIClient_Call
- func (_c *ConnectionFactory_GetExecutionAPIClient_Call) RunAndReturn(run func(address string) (execution.ExecutionAPIClient, io.Closer, error)) *ConnectionFactory_GetExecutionAPIClient_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectionFactory ¶
ConnectionFactory is an autogenerated mock type for the ConnectionFactory type
func NewConnectionFactory ¶
func NewConnectionFactory(t interface {
mock.TestingT
Cleanup(func())
}) *ConnectionFactory
NewConnectionFactory creates a new instance of ConnectionFactory. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ConnectionFactory) EXPECT ¶ added in v0.46.0
func (_m *ConnectionFactory) EXPECT() *ConnectionFactory_Expecter
func (*ConnectionFactory) GetAccessAPIClientWithPort ¶
func (_mock *ConnectionFactory) GetAccessAPIClientWithPort(address string, networkPubKey crypto.PublicKey) (access.AccessAPIClient, io.Closer, error)
GetAccessAPIClientWithPort provides a mock function for the type ConnectionFactory
func (*ConnectionFactory) GetCollectionAPIClient ¶ added in v0.43.0
func (_mock *ConnectionFactory) GetCollectionAPIClient(address string, networkPubKey crypto.PublicKey) (access.AccessAPIClient, io.Closer, error)
GetCollectionAPIClient provides a mock function for the type ConnectionFactory
func (*ConnectionFactory) GetExecutionAPIClient ¶
func (_mock *ConnectionFactory) GetExecutionAPIClient(address string) (execution.ExecutionAPIClient, io.Closer, error)
GetExecutionAPIClient provides a mock function for the type ConnectionFactory
type ConnectionFactory_Expecter ¶ added in v0.46.0
type ConnectionFactory_Expecter struct {
// contains filtered or unexported fields
}
func (*ConnectionFactory_Expecter) GetAccessAPIClientWithPort ¶ added in v0.46.0
func (_e *ConnectionFactory_Expecter) GetAccessAPIClientWithPort(address interface{}, networkPubKey interface{}) *ConnectionFactory_GetAccessAPIClientWithPort_Call
GetAccessAPIClientWithPort is a helper method to define mock.On call
- address string
- networkPubKey crypto.PublicKey
func (*ConnectionFactory_Expecter) GetCollectionAPIClient ¶ added in v0.46.0
func (_e *ConnectionFactory_Expecter) GetCollectionAPIClient(address interface{}, networkPubKey interface{}) *ConnectionFactory_GetCollectionAPIClient_Call
GetCollectionAPIClient is a helper method to define mock.On call
- address string
- networkPubKey crypto.PublicKey
func (*ConnectionFactory_Expecter) GetExecutionAPIClient ¶ added in v0.46.0
func (_e *ConnectionFactory_Expecter) GetExecutionAPIClient(address interface{}) *ConnectionFactory_GetExecutionAPIClient_Call
GetExecutionAPIClient is a helper method to define mock.On call
- address string
type ConnectionFactory_GetAccessAPIClientWithPort_Call ¶ added in v0.46.0
ConnectionFactory_GetAccessAPIClientWithPort_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAccessAPIClientWithPort'
func (*ConnectionFactory_GetAccessAPIClientWithPort_Call) Return ¶ added in v0.46.0
func (_c *ConnectionFactory_GetAccessAPIClientWithPort_Call) Return(accessAPIClient access.AccessAPIClient, closer io.Closer, err error) *ConnectionFactory_GetAccessAPIClientWithPort_Call
func (*ConnectionFactory_GetAccessAPIClientWithPort_Call) Run ¶ added in v0.46.0
func (_c *ConnectionFactory_GetAccessAPIClientWithPort_Call) Run(run func(address string, networkPubKey crypto.PublicKey)) *ConnectionFactory_GetAccessAPIClientWithPort_Call
func (*ConnectionFactory_GetAccessAPIClientWithPort_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ConnectionFactory_GetAccessAPIClientWithPort_Call) RunAndReturn(run func(address string, networkPubKey crypto.PublicKey) (access.AccessAPIClient, io.Closer, error)) *ConnectionFactory_GetAccessAPIClientWithPort_Call
type ConnectionFactory_GetCollectionAPIClient_Call ¶ added in v0.46.0
ConnectionFactory_GetCollectionAPIClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCollectionAPIClient'
func (*ConnectionFactory_GetCollectionAPIClient_Call) Return ¶ added in v0.46.0
func (_c *ConnectionFactory_GetCollectionAPIClient_Call) Return(accessAPIClient access.AccessAPIClient, closer io.Closer, err error) *ConnectionFactory_GetCollectionAPIClient_Call
func (*ConnectionFactory_GetCollectionAPIClient_Call) Run ¶ added in v0.46.0
func (_c *ConnectionFactory_GetCollectionAPIClient_Call) Run(run func(address string, networkPubKey crypto.PublicKey)) *ConnectionFactory_GetCollectionAPIClient_Call
func (*ConnectionFactory_GetCollectionAPIClient_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ConnectionFactory_GetCollectionAPIClient_Call) RunAndReturn(run func(address string, networkPubKey crypto.PublicKey) (access.AccessAPIClient, io.Closer, error)) *ConnectionFactory_GetCollectionAPIClient_Call
type ConnectionFactory_GetExecutionAPIClient_Call ¶ added in v0.46.0
ConnectionFactory_GetExecutionAPIClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetExecutionAPIClient'
func (*ConnectionFactory_GetExecutionAPIClient_Call) Return ¶ added in v0.46.0
func (_c *ConnectionFactory_GetExecutionAPIClient_Call) Return(executionAPIClient execution.ExecutionAPIClient, closer io.Closer, err error) *ConnectionFactory_GetExecutionAPIClient_Call
func (*ConnectionFactory_GetExecutionAPIClient_Call) Run ¶ added in v0.46.0
func (_c *ConnectionFactory_GetExecutionAPIClient_Call) Run(run func(address string)) *ConnectionFactory_GetExecutionAPIClient_Call
func (*ConnectionFactory_GetExecutionAPIClient_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ConnectionFactory_GetExecutionAPIClient_Call) RunAndReturn(run func(address string) (execution.ExecutionAPIClient, io.Closer, error)) *ConnectionFactory_GetExecutionAPIClient_Call