Versions in this module Expand all Collapse all v1 v1.0.0 Jan 26, 2023 Changes in this version + var ErrInterceptorNotRequired = errors.New("lnd requireinterceptor flag not set") + type Config struct + LndUrl string + Logger *zap.SugaredLogger + MacaroonPath string + Network *chaincfg.Params + PubKey common.PubKey + TlsCertPath string + type LndClient interface + HtlcInterceptor func(ctx context.Context) (func(*routerrpc.ForwardHtlcInterceptResponse) error, ...) + Network func() *chaincfg.Params + PubKey func() common.PubKey + RegisterBlockEpochNtfn func(ctx context.Context) (chan *chainrpc.BlockEpoch, chan error, error) + func NewLndClient(ctx context.Context, cfg Config) (LndClient, error) + type MockLndClient struct + func NewMockLndClient(ctrl *gomock.Controller) *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 struct + func (mr *MockLndClientMockRecorder) HtlcInterceptor(arg0 interface{}) *gomock.Call + func (mr *MockLndClientMockRecorder) Network() *gomock.Call + func (mr *MockLndClientMockRecorder) PubKey() *gomock.Call + func (mr *MockLndClientMockRecorder) RegisterBlockEpochNtfn(arg0 interface{}) *gomock.Call