Documentation
¶
Index ¶
- type MockIRegistrant
- func (_m *MockIRegistrant) EXPECT() *MockIRegistrant_Expecter
- func (_m *MockIRegistrant) NodeID() uint32
- func (_m *MockIRegistrant) SignClientEnvelopeToSelf(unsignedClientEnvelope []byte) ([]byte, error)
- func (_m *MockIRegistrant) SignPayerReportAttestation(reportID payerreport.ReportID) (*payerreport.NodeSignature, error)
- func (_m *MockIRegistrant) SignStagedEnvelope(stagedEnv queries.StagedOriginatorEnvelope, baseFee currency.PicoDollar, ...) (*envelopes.OriginatorEnvelope, error)
- func (_m *MockIRegistrant) TokenFactory() authn.TokenFactory
- type MockIRegistrant_Expecter
- func (_e *MockIRegistrant_Expecter) NodeID() *MockIRegistrant_NodeID_Call
- func (_e *MockIRegistrant_Expecter) SignClientEnvelopeToSelf(unsignedClientEnvelope interface{}) *MockIRegistrant_SignClientEnvelopeToSelf_Call
- func (_e *MockIRegistrant_Expecter) SignPayerReportAttestation(reportID interface{}) *MockIRegistrant_SignPayerReportAttestation_Call
- func (_e *MockIRegistrant_Expecter) SignStagedEnvelope(stagedEnv interface{}, baseFee interface{}, congestionFee interface{}, ...) *MockIRegistrant_SignStagedEnvelope_Call
- func (_e *MockIRegistrant_Expecter) TokenFactory() *MockIRegistrant_TokenFactory_Call
- type MockIRegistrant_NodeID_Call
- type MockIRegistrant_SignClientEnvelopeToSelf_Call
- func (_c *MockIRegistrant_SignClientEnvelopeToSelf_Call) Return(_a0 []byte, _a1 error) *MockIRegistrant_SignClientEnvelopeToSelf_Call
- func (_c *MockIRegistrant_SignClientEnvelopeToSelf_Call) Run(run func(unsignedClientEnvelope []byte)) *MockIRegistrant_SignClientEnvelopeToSelf_Call
- func (_c *MockIRegistrant_SignClientEnvelopeToSelf_Call) RunAndReturn(run func([]byte) ([]byte, error)) *MockIRegistrant_SignClientEnvelopeToSelf_Call
- type MockIRegistrant_SignPayerReportAttestation_Call
- func (_c *MockIRegistrant_SignPayerReportAttestation_Call) Return(_a0 *payerreport.NodeSignature, _a1 error) *MockIRegistrant_SignPayerReportAttestation_Call
- func (_c *MockIRegistrant_SignPayerReportAttestation_Call) Run(run func(reportID payerreport.ReportID)) *MockIRegistrant_SignPayerReportAttestation_Call
- func (_c *MockIRegistrant_SignPayerReportAttestation_Call) RunAndReturn(run func(payerreport.ReportID) (*payerreport.NodeSignature, error)) *MockIRegistrant_SignPayerReportAttestation_Call
- type MockIRegistrant_SignStagedEnvelope_Call
- func (_c *MockIRegistrant_SignStagedEnvelope_Call) Return(_a0 *envelopes.OriginatorEnvelope, _a1 error) *MockIRegistrant_SignStagedEnvelope_Call
- func (_c *MockIRegistrant_SignStagedEnvelope_Call) Run(...) *MockIRegistrant_SignStagedEnvelope_Call
- func (_c *MockIRegistrant_SignStagedEnvelope_Call) RunAndReturn(...) *MockIRegistrant_SignStagedEnvelope_Call
- type MockIRegistrant_TokenFactory_Call
- func (_c *MockIRegistrant_TokenFactory_Call) Return(_a0 authn.TokenFactory) *MockIRegistrant_TokenFactory_Call
- func (_c *MockIRegistrant_TokenFactory_Call) Run(run func()) *MockIRegistrant_TokenFactory_Call
- func (_c *MockIRegistrant_TokenFactory_Call) RunAndReturn(run func() authn.TokenFactory) *MockIRegistrant_TokenFactory_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockIRegistrant ¶
MockIRegistrant is an autogenerated mock type for the IRegistrant type
func NewMockIRegistrant ¶
func NewMockIRegistrant(t interface {
mock.TestingT
Cleanup(func())
}) *MockIRegistrant
NewMockIRegistrant creates a new instance of MockIRegistrant. 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 (*MockIRegistrant) EXPECT ¶
func (_m *MockIRegistrant) EXPECT() *MockIRegistrant_Expecter
func (*MockIRegistrant) NodeID ¶
func (_m *MockIRegistrant) NodeID() uint32
NodeID provides a mock function with no fields
func (*MockIRegistrant) SignClientEnvelopeToSelf ¶
func (_m *MockIRegistrant) SignClientEnvelopeToSelf(unsignedClientEnvelope []byte) ([]byte, error)
SignClientEnvelopeToSelf provides a mock function with given fields: unsignedClientEnvelope
func (*MockIRegistrant) SignPayerReportAttestation ¶
func (_m *MockIRegistrant) SignPayerReportAttestation(reportID payerreport.ReportID) (*payerreport.NodeSignature, error)
SignPayerReportAttestation provides a mock function with given fields: reportID
func (*MockIRegistrant) SignStagedEnvelope ¶
func (_m *MockIRegistrant) SignStagedEnvelope(stagedEnv queries.StagedOriginatorEnvelope, baseFee currency.PicoDollar, congestionFee currency.PicoDollar, retentionDays uint32) (*envelopes.OriginatorEnvelope, error)
SignStagedEnvelope provides a mock function with given fields: stagedEnv, baseFee, congestionFee, retentionDays
func (*MockIRegistrant) TokenFactory ¶
func (_m *MockIRegistrant) TokenFactory() authn.TokenFactory
TokenFactory provides a mock function with no fields
type MockIRegistrant_Expecter ¶
type MockIRegistrant_Expecter struct {
// contains filtered or unexported fields
}
func (*MockIRegistrant_Expecter) NodeID ¶
func (_e *MockIRegistrant_Expecter) NodeID() *MockIRegistrant_NodeID_Call
NodeID is a helper method to define mock.On call
func (*MockIRegistrant_Expecter) SignClientEnvelopeToSelf ¶
func (_e *MockIRegistrant_Expecter) SignClientEnvelopeToSelf(unsignedClientEnvelope interface{}) *MockIRegistrant_SignClientEnvelopeToSelf_Call
SignClientEnvelopeToSelf is a helper method to define mock.On call
- unsignedClientEnvelope []byte
func (*MockIRegistrant_Expecter) SignPayerReportAttestation ¶
func (_e *MockIRegistrant_Expecter) SignPayerReportAttestation(reportID interface{}) *MockIRegistrant_SignPayerReportAttestation_Call
SignPayerReportAttestation is a helper method to define mock.On call
- reportID payerreport.ReportID
func (*MockIRegistrant_Expecter) SignStagedEnvelope ¶
func (_e *MockIRegistrant_Expecter) SignStagedEnvelope(stagedEnv interface{}, baseFee interface{}, congestionFee interface{}, retentionDays interface{}) *MockIRegistrant_SignStagedEnvelope_Call
SignStagedEnvelope is a helper method to define mock.On call
- stagedEnv queries.StagedOriginatorEnvelope
- baseFee currency.PicoDollar
- congestionFee currency.PicoDollar
- retentionDays uint32
func (*MockIRegistrant_Expecter) TokenFactory ¶
func (_e *MockIRegistrant_Expecter) TokenFactory() *MockIRegistrant_TokenFactory_Call
TokenFactory is a helper method to define mock.On call
type MockIRegistrant_NodeID_Call ¶
MockIRegistrant_NodeID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NodeID'
func (*MockIRegistrant_NodeID_Call) Return ¶
func (_c *MockIRegistrant_NodeID_Call) Return(_a0 uint32) *MockIRegistrant_NodeID_Call
func (*MockIRegistrant_NodeID_Call) Run ¶
func (_c *MockIRegistrant_NodeID_Call) Run(run func()) *MockIRegistrant_NodeID_Call
func (*MockIRegistrant_NodeID_Call) RunAndReturn ¶
func (_c *MockIRegistrant_NodeID_Call) RunAndReturn(run func() uint32) *MockIRegistrant_NodeID_Call
type MockIRegistrant_SignClientEnvelopeToSelf_Call ¶
MockIRegistrant_SignClientEnvelopeToSelf_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SignClientEnvelopeToSelf'
func (*MockIRegistrant_SignClientEnvelopeToSelf_Call) Return ¶
func (_c *MockIRegistrant_SignClientEnvelopeToSelf_Call) Return(_a0 []byte, _a1 error) *MockIRegistrant_SignClientEnvelopeToSelf_Call
func (*MockIRegistrant_SignClientEnvelopeToSelf_Call) Run ¶
func (_c *MockIRegistrant_SignClientEnvelopeToSelf_Call) Run(run func(unsignedClientEnvelope []byte)) *MockIRegistrant_SignClientEnvelopeToSelf_Call
func (*MockIRegistrant_SignClientEnvelopeToSelf_Call) RunAndReturn ¶
func (_c *MockIRegistrant_SignClientEnvelopeToSelf_Call) RunAndReturn(run func([]byte) ([]byte, error)) *MockIRegistrant_SignClientEnvelopeToSelf_Call
type MockIRegistrant_SignPayerReportAttestation_Call ¶
MockIRegistrant_SignPayerReportAttestation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SignPayerReportAttestation'
func (*MockIRegistrant_SignPayerReportAttestation_Call) Return ¶
func (_c *MockIRegistrant_SignPayerReportAttestation_Call) Return(_a0 *payerreport.NodeSignature, _a1 error) *MockIRegistrant_SignPayerReportAttestation_Call
func (*MockIRegistrant_SignPayerReportAttestation_Call) Run ¶
func (_c *MockIRegistrant_SignPayerReportAttestation_Call) Run(run func(reportID payerreport.ReportID)) *MockIRegistrant_SignPayerReportAttestation_Call
func (*MockIRegistrant_SignPayerReportAttestation_Call) RunAndReturn ¶
func (_c *MockIRegistrant_SignPayerReportAttestation_Call) RunAndReturn(run func(payerreport.ReportID) (*payerreport.NodeSignature, error)) *MockIRegistrant_SignPayerReportAttestation_Call
type MockIRegistrant_SignStagedEnvelope_Call ¶
MockIRegistrant_SignStagedEnvelope_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SignStagedEnvelope'
func (*MockIRegistrant_SignStagedEnvelope_Call) Return ¶
func (_c *MockIRegistrant_SignStagedEnvelope_Call) Return(_a0 *envelopes.OriginatorEnvelope, _a1 error) *MockIRegistrant_SignStagedEnvelope_Call
func (*MockIRegistrant_SignStagedEnvelope_Call) Run ¶
func (_c *MockIRegistrant_SignStagedEnvelope_Call) Run(run func(stagedEnv queries.StagedOriginatorEnvelope, baseFee currency.PicoDollar, congestionFee currency.PicoDollar, retentionDays uint32)) *MockIRegistrant_SignStagedEnvelope_Call
func (*MockIRegistrant_SignStagedEnvelope_Call) RunAndReturn ¶
func (_c *MockIRegistrant_SignStagedEnvelope_Call) RunAndReturn(run func(queries.StagedOriginatorEnvelope, currency.PicoDollar, currency.PicoDollar, uint32) (*envelopes.OriginatorEnvelope, error)) *MockIRegistrant_SignStagedEnvelope_Call
type MockIRegistrant_TokenFactory_Call ¶
MockIRegistrant_TokenFactory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TokenFactory'
func (*MockIRegistrant_TokenFactory_Call) Return ¶
func (_c *MockIRegistrant_TokenFactory_Call) Return(_a0 authn.TokenFactory) *MockIRegistrant_TokenFactory_Call
func (*MockIRegistrant_TokenFactory_Call) Run ¶
func (_c *MockIRegistrant_TokenFactory_Call) Run(run func()) *MockIRegistrant_TokenFactory_Call
func (*MockIRegistrant_TokenFactory_Call) RunAndReturn ¶
func (_c *MockIRegistrant_TokenFactory_Call) RunAndReturn(run func() authn.TokenFactory) *MockIRegistrant_TokenFactory_Call