import "github.com/envoyproxy/go-control-plane/pkg/server/rest/v3"
Package rest provides an implementation of REST-JSON part of XDS server
type Callbacks interface { // OnFetchRequest is called for each Fetch request. Returning an error will end processing of the // request and respond with an error. OnFetchRequest(context.Context, *discovery.DiscoveryRequest) error // OnFetchResponse is called immediately prior to sending a response. OnFetchResponse(*discovery.DiscoveryRequest, *discovery.DiscoveryResponse) }
type Server interface { Fetch(context.Context, *discovery.DiscoveryRequest) (*discovery.DiscoveryResponse, error) }
Package rest imports 4 packages (graph) and is imported by 3 packages. Updated 2020-09-20. Refresh now. Tools for package owners.