server

package
v0.1.23-oss Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL