package
0.18.4-beta.rc2
Repository: https://github.com/lightningnetwork/lnd.git
Documentation: pkg.go.dev
# Functions
DisableLog disables all library log output.
NewInterceptorChain creates a new InterceptorChain.
NewMessageInterceptionRequest creates a new interception request for either a request or response message.
NewMiddlewareHandler creates a new handler for the middleware with the given name and custom caveat name.
NewStreamAuthInterceptionRequest creates a new interception request for a stream authentication message.
UseLogger uses a specified Logger to output package logging info.
# Constants
Subsystem defines the logging code for this subsystem.
TypeRequest is the type of intercept message that is sent when an RPC request message is sent to lnd.
TypeResponse is the type of intercept message that is sent when an RPC response message is sent from lnd to a client.
TypeStreamAuth is the type of intercept message that is sent when a client or streaming RPC is initialized.
# Variables
ErrNoWallet is returned if the wallet does not exist.
ErrRPCStarting is returned if the wallet has been unlocked but the RPC server is not yet ready to accept calls.
ErrShuttingDown is the error that's returned when the server is shutting down and a request cannot be served anymore.
ErrTimeoutReached is the error that's returned if any of the middleware's tasks is not completed in the given time.
ErrWaitingToStart is returned if LND is still waiting to start, possibly blocked until elected as the leader.
ErrWalletLocked is returned if the wallet is locked and any service other than the WalletUnlocker is called.
ErrWalletUnlocked is returned if the WalletUnlocker service is called when the wallet already has been unlocked.
# Structs
InterceptionRequest is a struct holding all information that is sent to a middleware whenever there is something to intercept (auth, request, response).
InterceptorChain is a struct that can be added to the running GRPC server, intercepting API calls.
MiddlewareHandler is a type that communicates with a middleware over the established bi-directional RPC stream.
# Type aliases
InterceptType defines the different types of intercept messages a middleware can receive.