rpc

package
v0.0.0-...-76ca6e9 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLightningClient

func CreateLightningClient(lndConnectParams lndconnect.LndConnectParams) (lnrpc.LightningClient, *grpc.ClientConn, error)

Generates the gRPC lightning client∏

func CreateNodeGuardClient

func CreateNodeGuardClient(nodeGuardEndpoint string) (nodeguard.NodeGuardServiceClient, *grpc.ClientConn, error)

CreateNodeGuardClient creates the NodeGuard grpc client

func CreateSwapClientClient

func CreateSwapClientClient(lndConnectParams lndconnect.LndConnectParams) (looprpc.SwapClientClient, *grpc.ClientConn, error)

Creates the SwapClient client similar to CreateLightningClient function

func WithTokenAuth

func WithTokenAuth(token string, header string) grpc.DialOption

Types

type TokenAuth

type TokenAuth struct {
	Token      string
	HeaderName string
}

func NewTokenAuth

func NewTokenAuth(token string, header string) *TokenAuth

func (*TokenAuth) GetRequestMetadata

func (ta *TokenAuth) GetRequestMetadata(context.Context, ...string) (map[string]string, error)

func (*TokenAuth) RequireTransportSecurity

func (ta *TokenAuth) RequireTransportSecurity() bool

Jump to

Keyboard shortcuts

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