Documentation
¶
Overview ¶
Package grpc provides a gRPC implementation of the Envoy v2 xDS API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAPI ¶
func NewAPI(log logrus.FieldLogger, resources map[string]Resource, registry *prometheus.Registry, opts ...grpc.ServerOption) *grpc.Server
NewAPI returns a *grpc.Server which responds to the Envoy v2 xDS gRPC API.
Types ¶
type Resource ¶ added in v1.0.0
type Resource interface {
// Contents returns the contents of this resource.
Contents() []proto.Message
// Query returns an entry for each resource name supplied.
Query(names []string) []proto.Message
// Register registers ch to receive a value when Notify is called.
Register(chan int, int, ...string)
// TypeURL returns the typeURL of messages returned from Values.
TypeURL() string
}
Resource represents a source of proto.Messages that can be registered for interest.
Click to show internal directories.
Click to hide internal directories.