lnd

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogWatcher

type LogWatcher struct {
	// contains filtered or unexported fields
}

func NewLogWatcher

func NewLogWatcher(containerName string, service *core.SingleContainerService) *LogWatcher

func (*LogWatcher) GetNeutrinoStatus

func (t *LogWatcher) GetNeutrinoStatus() string

func (*LogWatcher) Start

func (t *LogWatcher) Start()

func (*LogWatcher) Stop

func (t *LogWatcher) Stop()

type MacaroonCredential

type MacaroonCredential struct {
	Readonly string
}

MacaroonCredential implements the credentials.PerRPCCredentials interface.

func (*MacaroonCredential) GetRequestMetadata

func (t *MacaroonCredential) GetRequestMetadata(ctx context.Context, uri ...string) (map[string]string, error)

GetRequestMetadata implements the PerRPCCredentials interface. This method is required in order to pass the wrapped macaroon into the gRPC context. With this, the macaroon will be available within the request handling scope of the ultimate gRPC server implementation.

func (*MacaroonCredential) RequireTransportSecurity

func (t *MacaroonCredential) RequireTransportSecurity() bool

RequireTransportSecurity implements the PerRPCCredentials interface.

type NeutrinoSyncing

type NeutrinoSyncing struct {
	// contains filtered or unexported fields
}

type RpcClient

type RpcClient struct {
	// contains filtered or unexported fields
}

func NewRpcClient

func NewRpcClient(config config.RpcConfig, service *core.SingleContainerService) *RpcClient

func (*RpcClient) Close

func (t *RpcClient) Close() error

func (*RpcClient) GetInfo

func (t *RpcClient) GetInfo(ctx context.Context) (*pb.GetInfoResponse, error)

type Service

type Service struct {
	*core.SingleContainerService
	*RpcClient
	// contains filtered or unexported fields
}

func New

func New(
	name string,
	services map[string]core.Service,
	containerName string,
	dockerClient *docker.Client,
	chain string,
	rpcConfig config.RpcConfig,
) *Service

func (*Service) Close

func (t *Service) Close() error

func (*Service) ConfigureRouter

func (t *Service) ConfigureRouter(r *gin.RouterGroup)

func (*Service) GetBackendNode

func (t *Service) GetBackendNode() (string, error)

func (*Service) GetConfigValues

func (t *Service) GetConfigValues(key string) ([]string, error)

func (*Service) GetStatus

func (t *Service) GetStatus(ctx context.Context) string

func (*Service) Neutrino

func (t *Service) Neutrino() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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