Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeltaDiscoveryStream ¶
type DeltaDiscoveryStream = discovery.AggregatedDiscoveryService_DeltaAggregatedResourcesServer
DeltaDiscoveryStream is a server interface for XDS. DeltaDiscoveryStream is a server interface for Delta XDS.
type DiscoveryStream ¶
type DiscoveryStream = discovery.AggregatedDiscoveryService_StreamAggregatedResourcesServer
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(opts *ServerOpts, pushRequests <-chan xds.PushRequest, onNewSubscriber func(), handlers ...RequestHandler) *Server
type ServerOpts ¶
Click to show internal directories.
Click to hide internal directories.