grpc

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

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, cacheMap map[string]Cache) *grpc.Server

NewAPI returns a *grpc.Server which responds to the Envoy v2 xDS gRPC API.

Types

type CDS

type CDS struct {
	Cache
}

CDS implements the CDS v2 gRPC API.

func (*CDS) TypeURL

func (c *CDS) TypeURL() string

func (*CDS) Values added in v0.6.0

func (c *CDS) Values(filter func(string) bool) []proto.Message

Values returns a sorted list of Clusters.

type Cache added in v0.6.0

type Cache interface {
	// Values returns a slice of proto.Message implementations that match
	// the provided filter.
	Values(func(string) bool) []proto.Message

	// Register registers ch to receive a value when Notify is called.
	Register(chan int, int)
}

cache represents a source of proto.Message valus that can be registered for interest.

type EDS

type EDS struct {
	Cache
}

EDS implements the EDS v2 gRPC API.

func (*EDS) TypeURL

func (e *EDS) TypeURL() string

func (*EDS) Values added in v0.6.0

func (e *EDS) Values(filter func(string) bool) []proto.Message

Values returns a sorted list of ClusterLoadAssignments.

type LDS

type LDS struct {
	Cache
}

LDS implements the LDS v2 gRPC API.

func (*LDS) TypeURL

func (l *LDS) TypeURL() string

func (*LDS) Values added in v0.6.0

func (l *LDS) Values(filter func(string) bool) []proto.Message

Values returns a sorted list of Listeners.

type RDS

type RDS struct {
	Cache
}

RDS implements the RDS v2 gRPC API.

func (*RDS) TypeURL

func (r *RDS) TypeURL() string

func (*RDS) Values added in v0.6.0

func (r *RDS) Values(filter func(string) bool) []proto.Message

Values returns a sorted list of RouteConfigurations.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL