adss

package
v0.0.0-...-f43927d Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeltaDiscoveryStream

DeltaDiscoveryStream is a server interface for XDS. DeltaDiscoveryStream is a server interface for Delta XDS.

type DiscoveryStream

DeltaDiscoveryStream is a server interface for XDS. DeltaDiscoveryStream is a server interface for Delta XDS.

type RequestHandler

type RequestHandler interface {
	// GetTypeUrl returns supported XDS type.
	// An implementation can support only one XDS type.
	GetTypeUrl() string
	// GenerateResponse returns generated resources for requested XDS type.
	GenerateResponse() ([]*anypb.Any, error)
}

RequestHandler generates XDS response for requests from subscribers or push requests triggered by other events.

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(pushRequests <-chan xds.PushRequest, onNewSubscriber func(), handlers ...RequestHandler) *Server

func (*Server) Run

func (s *Server) Run(ctx context.Context) error

Run starts the gRPC server and the controllers.

Jump to

Keyboard shortcuts

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