Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGRPCServer ¶
func NewGRPCServer(o *GRPCServerOpts) (*grpc.Server, error)
NewGRPCServer creates a new gRPC server with the given options.
Types ¶
type GRPCServerOpts ¶
type GRPCServerOpts struct {
Server remote.RemoteCloser
ProxyPrefixToConnManager map[string]abfsgrpc.ConnectionManager
MaxConnectionAge time.Duration
// The server will setup TLS credentials
// and authentication interceptors if these
// values are set.
// This requires *a* TLS termination to occur at the server,
// but not necessarily the one from the client.
// Either of these approaches:
// 1. client <-TLS-> server
// 2. client <-TLS-> load balancer <-TLS-> server
// While unencrypted traffic from LB to the server is possible, this
// is discouraged for security purposes, even inside internal VPCs.
CertFile string
KeyFile string
// AuthEnabled allows enabling authentication interceptors.
AuthEnabled bool
ExtraServerOpts []grpc.ServerOption
}
GRPCServerOpts contains the options for creating a new gRPC server.
Click to show internal directories.
Click to hide internal directories.