server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts XdsServerOpts) (*xdsServer, error)

New creates a new XDS Server.

Types

type XdsServer

type XdsServer interface {
	Start(context.Context) error
	UpdateSnapshot(context.Context, *cache.Snapshot) error
}

XdsServer provides a GRPC config server based on Envoys xDS protocol.

type XdsServerOpts

type XdsServerOpts struct {
	GrpcKeepaliveTime        time.Duration
	GrpcKeepaliveTimeout     time.Duration
	GrpcKeepaliveMinTime     time.Duration
	GrpcMaxConcurrentStreams uint32

	Logger logger.Logger
	NodeID string

	Host string
}

ServerOpts configure the GRPC server.

Jump to

Keyboard shortcuts

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