# Functions
DeclareGRPCPortFlag declares GRPC port (with usage & default value) a flag for a particular plugin name.
GetUserMetadata can be used to extract user metadata stored in a context.
ListenAndServe starts configured listener and serving for clients.
NewPlugin creates a new Plugin with the provided Options.
StreamServerInterceptorLimiter returns a new stream server interceptor that performs rate limiting on the request.
UnaryServerInterceptorLimiter returns a new unary server interceptors that performs request rate limiting.
UseAuth returns Option that sets Authenticator.
UseConf returns Option which injects a particular configuration.
UseDeps returns Option that can inject custom dependencies.
UseHTTP returns Option that sets HTTP handlers.
UsePromMetrics returns Option that sets custom server metrics.
UseRateLimiter returns an Option which sets rate limiter.
UseServerOpts returns Option that adds server options.
UseTLS returns Option that sets TLS config.
# Variables
DefaultPlugin is a default instance of Plugin.
# Structs
Authenticator exposes a function for authenticating requests.
Config is a configuration for GRPC netListener It is meant to be extended with security (TLS...).
Deps is a list of injected dependencies of the GRPC plugin.
Plugin maintains the GRPC netListener (see Init, AfterInit, Close methods).
UserMetadata contains metadata about a user.
# Interfaces
Server defines the API for getting grpc.Server instance that is useful for registering new GRPC services.
# Type aliases
Option is a function that can be used in NewPlugin to customize Plugin.