lnd

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 26, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package lnd is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var ErrInterceptorNotRequired = errors.New("lnd requireinterceptor flag not set")

Functions

This section is empty.

Types

type Config

type Config struct {
	// Connection
	TlsCertPath  string
	MacaroonPath string
	LndUrl       string
	Network      *chaincfg.Params
	PubKey       common.PubKey

	Logger *zap.SugaredLogger
}

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)
}

func NewLndClient

func NewLndClient(ctx context.Context, cfg Config) (LndClient, 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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockLndClient) HtlcInterceptor

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL