Documentation ¶
Overview ¶
Package lnd is a generated GoMock package.
Index ¶
- Variables
- type Config
- type LndClient
- type MockLndClient
- func (m *MockLndClient) EXPECT() *MockLndClientMockRecorder
- func (m *MockLndClient) HtlcInterceptor(arg0 context.Context) (func(*routerrpc.ForwardHtlcInterceptResponse) error, ...)
- func (m *MockLndClient) Network() *chaincfg.Params
- func (m *MockLndClient) PubKey() common.PubKey
- func (m *MockLndClient) RegisterBlockEpochNtfn(arg0 context.Context) (chan *chainrpc.BlockEpoch, chan error, error)
- type MockLndClientMockRecorder
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInterceptorNotRequired = errors.New("lnd requireinterceptor flag not set")
Functions ¶
This section is empty.
Types ¶
type LndClient ¶
type LndClient interface { PubKey() common.PubKey Network() *chaincfg.Params RegisterBlockEpochNtfn(ctx context.Context) (chan *chainrpc.BlockEpoch, chan error, error) HtlcInterceptor(ctx context.Context) ( func(*routerrpc.ForwardHtlcInterceptResponse) error, func() (*routerrpc.ForwardHtlcInterceptRequest, error), error) }
type MockLndClient ¶
type MockLndClient struct {
// contains filtered or unexported fields
}
MockLndClient is a mock of LndClient interface.
func NewMockLndClient ¶
func NewMockLndClient(ctrl *gomock.Controller) *MockLndClient
NewMockLndClient creates a new mock instance.
func (*MockLndClient) EXPECT ¶
func (m *MockLndClient) EXPECT() *MockLndClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockLndClient) HtlcInterceptor ¶
func (m *MockLndClient) HtlcInterceptor(arg0 context.Context) (func(*routerrpc.ForwardHtlcInterceptResponse) error, func() (*routerrpc.ForwardHtlcInterceptRequest, error), error)
HtlcInterceptor mocks base method.
func (*MockLndClient) Network ¶
func (m *MockLndClient) Network() *chaincfg.Params
Network mocks base method.
func (*MockLndClient) PubKey ¶
func (m *MockLndClient) PubKey() common.PubKey
PubKey mocks base method.
func (*MockLndClient) RegisterBlockEpochNtfn ¶
func (m *MockLndClient) RegisterBlockEpochNtfn(arg0 context.Context) (chan *chainrpc.BlockEpoch, chan error, error)
RegisterBlockEpochNtfn mocks base method.
type MockLndClientMockRecorder ¶
type MockLndClientMockRecorder struct {
// contains filtered or unexported fields
}
MockLndClientMockRecorder is the mock recorder for MockLndClient.
func (*MockLndClientMockRecorder) HtlcInterceptor ¶
func (mr *MockLndClientMockRecorder) HtlcInterceptor(arg0 interface{}) *gomock.Call
HtlcInterceptor indicates an expected call of HtlcInterceptor.
func (*MockLndClientMockRecorder) Network ¶
func (mr *MockLndClientMockRecorder) Network() *gomock.Call
Network indicates an expected call of Network.
func (*MockLndClientMockRecorder) PubKey ¶
func (mr *MockLndClientMockRecorder) PubKey() *gomock.Call
PubKey indicates an expected call of PubKey.
func (*MockLndClientMockRecorder) RegisterBlockEpochNtfn ¶
func (mr *MockLndClientMockRecorder) RegisterBlockEpochNtfn(arg0 interface{}) *gomock.Call
RegisterBlockEpochNtfn indicates an expected call of RegisterBlockEpochNtfn.
Click to show internal directories.
Click to hide internal directories.