# Functions
AuthInterceptors sets interceptors that are intended for authentication/authorization in the correct locations in the chain.
ErrorToCode determines the gRPC error code for an error, accounting for context errors and errors wrapped with pkg/errors.
GRPCOption adds a grpc ServerOption to the server.
HighCardInterceptors sets interceptors that use Attributes/Labels on the instrumentation.
Local returns an in-process server for the provided gRPC server.
LogEntry provided will be added to the context.
MetricsProvider will have metrics reported to it.
New configures a gRPC Server with default options and a health server.
NewStandardH2C create a set of servers suitable for serving gRPC services using H2C (aka client upgrades).
NewStandardServer configures a GRPC server with a standard setup including metrics (if provider passed), panic handling, a health check service, TLS termination with client authentication, and proxy-protocol wrapping.
RunStandardServer runs a GRPC server with a standard setup including metrics (if provider passed), panic handling, a health check service, TLS termination with client authentication, and proxy-protocol wrapping.
TCP returns a TCP server for the provided gRPC server.
TLS returns a ServerOption which adds mutual-TLS to the gRPC server.
UnaryPayloadLoggingTagger annotates ctx with grpc_ctxtags tags for request and response payloads.
ValidateInterceptor sets interceptors that will validate every message that has a receiver of the form `Validate() error`
See github.com/mwitkow/go-proto-validators for details.
WithOCGRPCServerHandler sets the grpc server up with provided ServerHandler as its StatsHandler.
WithPeerValidator configures the gRPC server to reject calls from peers which do not provide a certificate or for which the provided function returns false.
No description provided by the author
# Structs
An LocalServer serves a gRPC server from memory.
A TCPServer serves a gRPC server over TCP with proxy-protocol support.
# Interfaces
A Starter registers and starts itself on the provided grpc.Server.
# Type aliases
ServerOption sets optional fields on the standard gRPC server.