package
0.0.0-20200723042522-932836ee9d04
Repository: https://github.com/mixpanel/bb-storage.git
Documentation: pkg.go.dev

# Functions

NewAddMetadataStreamClientInterceptor creates a gRPC request interceptor for streaming calls that adds a set of specified pairs into the outgoing metadata headers.
NewAddMetadataUnaryClientInterceptor creates a gRPC request interceptor for unary calls that adds a set of specified pairs into the outgoing metadata headers.
NewAnyAuthenticator wraps a series of Authenticators into a single instance.
NewAuthenticatingStreamInterceptor creates a gRPC request interceptor for streaming calls that passes all requests through an Authenticator.
NewAuthenticatingUnaryInterceptor creates a gRPC request interceptor for unary calls that passes all requests through an Authenticator.
NewAuthenticatorFromConfiguration creates a tree of Authenticator objects based on a configuration file.
NewDeduplicatingClientFactory creates a decorator for ClientFactory that deduplicates requests for creating gRPC clients.
NewDenyAuthenticator creates an Authenticator that always returns an UNAUTHENTICATED error with a fixed error message string.
NewMetadataForwardingStreamClientInterceptor creates a gRPC request interceptor for streaming calls that extracts a set of incoming metadata headers from the calling context and copies them into the outgoing metadata headers.
NewMetadataForwardingUnaryClientInterceptor creates a gRPC request interceptor for unary calls that extracts a set of incoming metadata headers from the calling context and copies them into the outgoing metadata headers.
NewServersFromConfigurationAndServe creates a series of gRPC servers based on a configuration stored in a list of Protobuf messages.
NewTLSClientCertificateAuthenticator creates an Authenticator that only grants access in case the client connected to the gRPC server using a TLS client certificate that can be validated against the chain of CAs used by the server.

# Variables

AllowAuthenticator is an implementation of Authenticator that simply always returns success.
BaseClientFactory creates gRPC clients using the go-grpc library.

# Interfaces

Authenticator can be used to grant or deny access to a gRPC server.
ClientFactory can be used to construct gRPC clients based on options specified in a configuration message.