endpoints

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2020 License: Apache-2.0 Imports: 18 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnknownServiceHandler

func UnknownServiceHandler(log logrus.FieldLogger) grpc.StreamHandler

Types

type Config

type Config struct {
	BindAddr *net.UnixAddr

	GRPCHook func(*grpc.Server) error

	Catalog catalog.Catalog
	Manager manager.Manager

	Log     logrus.FieldLogger
	Metrics telemetry.Metrics

	// If true, an SDS server will be served over the UDS socket
	EnableSDS bool
}

type Endpoints

type Endpoints struct {
	// contains filtered or unexported fields
}

func New

func New(c *Config) *Endpoints

func (*Endpoints) ListenAndServe

func (e *Endpoints) ListenAndServe(ctx context.Context) error

type Server

type Server interface {
	ListenAndServe(ctx context.Context) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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