Documentation
¶
Index ¶
- type Client
- func (_m *Client) Close() error
- func (_m *Client) EXPECT() *Client_Expecter
- func (_m *Client) GetNetworkInfo() (*btcjson.GetNetworkInfoResult, error)
- func (_m *Client) MasternodeListJSON(filter string) (map[string]btcjson.MasternodelistResultJSON, error)
- func (_m *Client) MasternodeStatus() (*btcjson.MasternodeStatusResult, error)
- func (_m *Client) Ping() error
- func (_m *Client) QuorumInfo(quorumType btcjson.LLMQType, quorumHash crypto.QuorumHash) (*btcjson.QuorumInfoResult, error)
- func (_m *Client) QuorumSign(quorumType btcjson.LLMQType, requestID bytes.HexBytes, ...) (*btcjson.QuorumSignResult, error)
- func (_m *Client) QuorumVerify(quorumType btcjson.LLMQType, requestID bytes.HexBytes, ...) (bool, error)
- type Client_Close_Call
- type Client_Expecter
- func (_e *Client_Expecter) Close() *Client_Close_Call
- func (_e *Client_Expecter) GetNetworkInfo() *Client_GetNetworkInfo_Call
- func (_e *Client_Expecter) MasternodeListJSON(filter interface{}) *Client_MasternodeListJSON_Call
- func (_e *Client_Expecter) MasternodeStatus() *Client_MasternodeStatus_Call
- func (_e *Client_Expecter) Ping() *Client_Ping_Call
- func (_e *Client_Expecter) QuorumInfo(quorumType interface{}, quorumHash interface{}) *Client_QuorumInfo_Call
- func (_e *Client_Expecter) QuorumSign(quorumType interface{}, requestID interface{}, messageHash interface{}, ...) *Client_QuorumSign_Call
- func (_e *Client_Expecter) QuorumVerify(quorumType interface{}, requestID interface{}, messageHash interface{}, ...) *Client_QuorumVerify_Call
- type Client_GetNetworkInfo_Call
- func (_c *Client_GetNetworkInfo_Call) Return(_a0 *btcjson.GetNetworkInfoResult, _a1 error) *Client_GetNetworkInfo_Call
- func (_c *Client_GetNetworkInfo_Call) Run(run func()) *Client_GetNetworkInfo_Call
- func (_c *Client_GetNetworkInfo_Call) RunAndReturn(run func() (*btcjson.GetNetworkInfoResult, error)) *Client_GetNetworkInfo_Call
- type Client_MasternodeListJSON_Call
- func (_c *Client_MasternodeListJSON_Call) Return(_a0 map[string]btcjson.MasternodelistResultJSON, _a1 error) *Client_MasternodeListJSON_Call
- func (_c *Client_MasternodeListJSON_Call) Run(run func(filter string)) *Client_MasternodeListJSON_Call
- func (_c *Client_MasternodeListJSON_Call) RunAndReturn(run func(string) (map[string]btcjson.MasternodelistResultJSON, error)) *Client_MasternodeListJSON_Call
- type Client_MasternodeStatus_Call
- func (_c *Client_MasternodeStatus_Call) Return(_a0 *btcjson.MasternodeStatusResult, _a1 error) *Client_MasternodeStatus_Call
- func (_c *Client_MasternodeStatus_Call) Run(run func()) *Client_MasternodeStatus_Call
- func (_c *Client_MasternodeStatus_Call) RunAndReturn(run func() (*btcjson.MasternodeStatusResult, error)) *Client_MasternodeStatus_Call
- type Client_Ping_Call
- type Client_QuorumInfo_Call
- func (_c *Client_QuorumInfo_Call) Return(_a0 *btcjson.QuorumInfoResult, _a1 error) *Client_QuorumInfo_Call
- func (_c *Client_QuorumInfo_Call) Run(run func(quorumType btcjson.LLMQType, quorumHash crypto.QuorumHash)) *Client_QuorumInfo_Call
- func (_c *Client_QuorumInfo_Call) RunAndReturn(...) *Client_QuorumInfo_Call
- type Client_QuorumSign_Call
- func (_c *Client_QuorumSign_Call) Return(_a0 *btcjson.QuorumSignResult, _a1 error) *Client_QuorumSign_Call
- func (_c *Client_QuorumSign_Call) Run(run func(quorumType btcjson.LLMQType, requestID bytes.HexBytes, ...)) *Client_QuorumSign_Call
- func (_c *Client_QuorumSign_Call) RunAndReturn(...) *Client_QuorumSign_Call
- type Client_QuorumVerify_Call
- func (_c *Client_QuorumVerify_Call) Return(_a0 bool, _a1 error) *Client_QuorumVerify_Call
- func (_c *Client_QuorumVerify_Call) Run(run func(quorumType btcjson.LLMQType, requestID bytes.HexBytes, ...)) *Client_QuorumVerify_Call
- func (_c *Client_QuorumVerify_Call) RunAndReturn(...) *Client_QuorumVerify_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func NewClient ¶
NewClient creates a new instance of Client. 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 (*Client) EXPECT ¶ added in v1.4.0
func (_m *Client) EXPECT() *Client_Expecter
func (*Client) GetNetworkInfo ¶
func (_m *Client) GetNetworkInfo() (*btcjson.GetNetworkInfoResult, error)
GetNetworkInfo provides a mock function with no fields
func (*Client) MasternodeListJSON ¶
func (_m *Client) MasternodeListJSON(filter string) (map[string]btcjson.MasternodelistResultJSON, error)
MasternodeListJSON provides a mock function with given fields: filter
func (*Client) MasternodeStatus ¶
func (_m *Client) MasternodeStatus() (*btcjson.MasternodeStatusResult, error)
MasternodeStatus provides a mock function with no fields
func (*Client) QuorumInfo ¶
func (_m *Client) QuorumInfo(quorumType btcjson.LLMQType, quorumHash crypto.QuorumHash) (*btcjson.QuorumInfoResult, error)
QuorumInfo provides a mock function with given fields: quorumType, quorumHash
func (*Client) QuorumSign ¶
func (_m *Client) QuorumSign(quorumType btcjson.LLMQType, requestID bytes.HexBytes, messageHash bytes.HexBytes, quorumHash bytes.HexBytes) (*btcjson.QuorumSignResult, error)
QuorumSign provides a mock function with given fields: quorumType, requestID, messageHash, quorumHash
func (*Client) QuorumVerify ¶
func (_m *Client) QuorumVerify(quorumType btcjson.LLMQType, requestID bytes.HexBytes, messageHash bytes.HexBytes, signature bytes.HexBytes, quorumHash bytes.HexBytes) (bool, error)
QuorumVerify provides a mock function with given fields: quorumType, requestID, messageHash, signature, quorumHash
type Client_Close_Call ¶ added in v1.4.0
Client_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*Client_Close_Call) Return ¶ added in v1.4.0
func (_c *Client_Close_Call) Return(_a0 error) *Client_Close_Call
func (*Client_Close_Call) Run ¶ added in v1.4.0
func (_c *Client_Close_Call) Run(run func()) *Client_Close_Call
func (*Client_Close_Call) RunAndReturn ¶ added in v1.4.0
func (_c *Client_Close_Call) RunAndReturn(run func() error) *Client_Close_Call
type Client_Expecter ¶ added in v1.4.0
type Client_Expecter struct {
// contains filtered or unexported fields
}
func (*Client_Expecter) Close ¶ added in v1.4.0
func (_e *Client_Expecter) Close() *Client_Close_Call
Close is a helper method to define mock.On call
func (*Client_Expecter) GetNetworkInfo ¶ added in v1.4.0
func (_e *Client_Expecter) GetNetworkInfo() *Client_GetNetworkInfo_Call
GetNetworkInfo is a helper method to define mock.On call
func (*Client_Expecter) MasternodeListJSON ¶ added in v1.4.0
func (_e *Client_Expecter) MasternodeListJSON(filter interface{}) *Client_MasternodeListJSON_Call
MasternodeListJSON is a helper method to define mock.On call
- filter string
func (*Client_Expecter) MasternodeStatus ¶ added in v1.4.0
func (_e *Client_Expecter) MasternodeStatus() *Client_MasternodeStatus_Call
MasternodeStatus is a helper method to define mock.On call
func (*Client_Expecter) Ping ¶ added in v1.4.0
func (_e *Client_Expecter) Ping() *Client_Ping_Call
Ping is a helper method to define mock.On call
func (*Client_Expecter) QuorumInfo ¶ added in v1.4.0
func (_e *Client_Expecter) QuorumInfo(quorumType interface{}, quorumHash interface{}) *Client_QuorumInfo_Call
QuorumInfo is a helper method to define mock.On call
- quorumType btcjson.LLMQType
- quorumHash crypto.QuorumHash
func (*Client_Expecter) QuorumSign ¶ added in v1.4.0
func (_e *Client_Expecter) QuorumSign(quorumType interface{}, requestID interface{}, messageHash interface{}, quorumHash interface{}) *Client_QuorumSign_Call
QuorumSign is a helper method to define mock.On call
- quorumType btcjson.LLMQType
- requestID bytes.HexBytes
- messageHash bytes.HexBytes
- quorumHash bytes.HexBytes
func (*Client_Expecter) QuorumVerify ¶ added in v1.4.0
func (_e *Client_Expecter) QuorumVerify(quorumType interface{}, requestID interface{}, messageHash interface{}, signature interface{}, quorumHash interface{}) *Client_QuorumVerify_Call
QuorumVerify is a helper method to define mock.On call
- quorumType btcjson.LLMQType
- requestID bytes.HexBytes
- messageHash bytes.HexBytes
- signature bytes.HexBytes
- quorumHash bytes.HexBytes
type Client_GetNetworkInfo_Call ¶ added in v1.4.0
Client_GetNetworkInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNetworkInfo'
func (*Client_GetNetworkInfo_Call) Return ¶ added in v1.4.0
func (_c *Client_GetNetworkInfo_Call) Return(_a0 *btcjson.GetNetworkInfoResult, _a1 error) *Client_GetNetworkInfo_Call
func (*Client_GetNetworkInfo_Call) Run ¶ added in v1.4.0
func (_c *Client_GetNetworkInfo_Call) Run(run func()) *Client_GetNetworkInfo_Call
func (*Client_GetNetworkInfo_Call) RunAndReturn ¶ added in v1.4.0
func (_c *Client_GetNetworkInfo_Call) RunAndReturn(run func() (*btcjson.GetNetworkInfoResult, error)) *Client_GetNetworkInfo_Call
type Client_MasternodeListJSON_Call ¶ added in v1.4.0
Client_MasternodeListJSON_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MasternodeListJSON'
func (*Client_MasternodeListJSON_Call) Return ¶ added in v1.4.0
func (_c *Client_MasternodeListJSON_Call) Return(_a0 map[string]btcjson.MasternodelistResultJSON, _a1 error) *Client_MasternodeListJSON_Call
func (*Client_MasternodeListJSON_Call) Run ¶ added in v1.4.0
func (_c *Client_MasternodeListJSON_Call) Run(run func(filter string)) *Client_MasternodeListJSON_Call
func (*Client_MasternodeListJSON_Call) RunAndReturn ¶ added in v1.4.0
func (_c *Client_MasternodeListJSON_Call) RunAndReturn(run func(string) (map[string]btcjson.MasternodelistResultJSON, error)) *Client_MasternodeListJSON_Call
type Client_MasternodeStatus_Call ¶ added in v1.4.0
Client_MasternodeStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MasternodeStatus'
func (*Client_MasternodeStatus_Call) Return ¶ added in v1.4.0
func (_c *Client_MasternodeStatus_Call) Return(_a0 *btcjson.MasternodeStatusResult, _a1 error) *Client_MasternodeStatus_Call
func (*Client_MasternodeStatus_Call) Run ¶ added in v1.4.0
func (_c *Client_MasternodeStatus_Call) Run(run func()) *Client_MasternodeStatus_Call
func (*Client_MasternodeStatus_Call) RunAndReturn ¶ added in v1.4.0
func (_c *Client_MasternodeStatus_Call) RunAndReturn(run func() (*btcjson.MasternodeStatusResult, error)) *Client_MasternodeStatus_Call
type Client_Ping_Call ¶ added in v1.4.0
Client_Ping_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Ping'
func (*Client_Ping_Call) Return ¶ added in v1.4.0
func (_c *Client_Ping_Call) Return(_a0 error) *Client_Ping_Call
func (*Client_Ping_Call) Run ¶ added in v1.4.0
func (_c *Client_Ping_Call) Run(run func()) *Client_Ping_Call
func (*Client_Ping_Call) RunAndReturn ¶ added in v1.4.0
func (_c *Client_Ping_Call) RunAndReturn(run func() error) *Client_Ping_Call
type Client_QuorumInfo_Call ¶ added in v1.4.0
Client_QuorumInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QuorumInfo'
func (*Client_QuorumInfo_Call) Return ¶ added in v1.4.0
func (_c *Client_QuorumInfo_Call) Return(_a0 *btcjson.QuorumInfoResult, _a1 error) *Client_QuorumInfo_Call
func (*Client_QuorumInfo_Call) Run ¶ added in v1.4.0
func (_c *Client_QuorumInfo_Call) Run(run func(quorumType btcjson.LLMQType, quorumHash crypto.QuorumHash)) *Client_QuorumInfo_Call
func (*Client_QuorumInfo_Call) RunAndReturn ¶ added in v1.4.0
func (_c *Client_QuorumInfo_Call) RunAndReturn(run func(btcjson.LLMQType, crypto.QuorumHash) (*btcjson.QuorumInfoResult, error)) *Client_QuorumInfo_Call
type Client_QuorumSign_Call ¶ added in v1.4.0
Client_QuorumSign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QuorumSign'
func (*Client_QuorumSign_Call) Return ¶ added in v1.4.0
func (_c *Client_QuorumSign_Call) Return(_a0 *btcjson.QuorumSignResult, _a1 error) *Client_QuorumSign_Call
func (*Client_QuorumSign_Call) Run ¶ added in v1.4.0
func (_c *Client_QuorumSign_Call) Run(run func(quorumType btcjson.LLMQType, requestID bytes.HexBytes, messageHash bytes.HexBytes, quorumHash bytes.HexBytes)) *Client_QuorumSign_Call
func (*Client_QuorumSign_Call) RunAndReturn ¶ added in v1.4.0
func (_c *Client_QuorumSign_Call) RunAndReturn(run func(btcjson.LLMQType, bytes.HexBytes, bytes.HexBytes, bytes.HexBytes) (*btcjson.QuorumSignResult, error)) *Client_QuorumSign_Call
type Client_QuorumVerify_Call ¶ added in v1.4.0
Client_QuorumVerify_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QuorumVerify'
func (*Client_QuorumVerify_Call) Return ¶ added in v1.4.0
func (_c *Client_QuorumVerify_Call) Return(_a0 bool, _a1 error) *Client_QuorumVerify_Call