package
0.13.994-experimental
Repository: https://github.com/lightninglabs/lightning-terminal.git
Documentation: pkg.go.dev

# Functions

DefaultConfig returns the default RPC middleware configuration.
MessageTypeOf return the protobuf reflection type of the given fully qualified message type name.
NewFullChecker returns a round trip checker that both inspects the incoming request and response and potentially modifies the response.
NewFullRewriter returns a round trip checker that both inspects the incoming request and response and potentially modifies the both the request and response.
NewManager returns a new middleware manager.
NewPassThrough returns a round trip checker that allows the incoming request and passes through the response unmodified.
NewRequestChecker returns a round trip checker that inspects the incoming request and passes through the response unmodified.
NewRequestDenier returns a round trip checker that denies the given requests.
NewRequestRewriter returns a round trip checker that inspects and potentially modifies the incoming request and passes through the response unmodified.
NewResponseEmptier returns a round trip checker that allows the incoming request and replaces the response with an empty one.
NewResponseRewriter returns a round trip checker that allows the incoming request and inspects and potentially modifies the response.
ParseProtobuf parses a proto serialized message of the given type into its native version.
ParseResponseErr converts a serialized error into an error type.
RPCErr constructs an rpc middleware response from the given error.
RPCErrReplacement constructs a new rpc middleware response that will indicate that an error should be replaced by a different one.
RPCErrString constructs a middleware response.
RPCOk constructs a middleware response with no error.
RPCReplacement constructs a new middleware response that will indicate that the message should be replaced with the given replacement message.
UseLogger uses a specified Logger to output package logging info.

# Constants

DefaultInterceptTimeout is the default maximum time we're allowed to take to respond to an RPC middleware interception request.
No description provided by the author

# Variables

ErrNotSupported is returned if a specific method is called that is not supported by the RPC middleware interceptor checker.
PassThroughErrorHandler is an ErrorHandler that does not modify an error and instead just passes it through.

# Structs

Config is the configuration struct for the RPC middleware.
DefaultChecker is the default implementation of a round trip checker.
Manager is the main middleware manager service.

# Interfaces

RequestInterceptor is a type that can intercept an RPC request.
RoundTripChecker is a type that represents a basic request/response round trip checker.

# Type aliases

ErrorHandler is a function type for a generic gRPC error handler.