Documentation ¶
Overview ¶
Package sotw provides an implementation of GRPC SoTW (State of The World) part of XDS client
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInit = errors.New("ads client: grpc connection is not initialized (use InitConnect() method to initialize connection)") ErrNilResp = errors.New("ads client: nil response from xds management server") )
Functions ¶
func IsConnError ¶
IsConnError checks the provided error is due to the gRPC connection and returns true if it is due to the gRPC connection.
In this case the gRPC connection with the server should be re initialized with the ADSClient.InitConnect method.
Types ¶
type ADSClient ¶
type ADSClient interface { // Initialize the gRPC connection with management server and send the initial Discovery Request. InitConnect(clientConn grpc.ClientConnInterface, opts ...grpc.CallOption) error // Fetch waits for a response from management server and returns response or error. Fetch() (*Response, error) // Ack acknowledge the validity of the last received response to management server. Ack() error // Nack acknowledge the invalidity of the last received response to management server. Nack(message string) error }
ADSClient is a SoTW and ADS based generic gRPC xDS client which can be used to implement an xDS client which fetches resources from an xDS server and responds the server back with ack or nack the resources.
Click to show internal directories.
Click to hide internal directories.