go-control-plane: github.com/envoyproxy/go-control-plane/pkg/server/rest/v3 Index | Files

package rest

import "github.com/envoyproxy/go-control-plane/pkg/server/rest/v3"

Package rest provides an implementation of REST-JSON part of XDS server


Package Files


type Callbacks Uses

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 Uses

type Server interface {
    Fetch(context.Context, *discovery.DiscoveryRequest) (*discovery.DiscoveryResponse, error)

func NewServer Uses

func NewServer(config cache.ConfigFetcher, callbacks Callbacks) Server

Package rest imports 4 packages (graph) and is imported by 3 packages. Updated 2020-09-20. Refresh now. Tools for package owners.