endpoint

package
v0.0.0-...-3b31870 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2022 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	IsServerReady IsServerReadyFunc
	Version       string
	Cluster       string
	TLSCert       string
	TLSKey        string
	UDSServer     string
	Dialer        common.Dialer
	Port          *common.Port
	ListenerIP    string
	IstioVersion  string
	DisableALPN   bool
}

Config for a single endpoint Instance.

type EchoGrpcHandler

type EchoGrpcHandler struct {
	proto.UnimplementedEchoTestServiceServer
	Config
}

func (*EchoGrpcHandler) Echo

func (*EchoGrpcHandler) ForwardEcho

type Instance

type Instance interface {
	io.Closer
	Start(onReady OnReadyFunc) error
	GetConfig() Config
}

Instance of an endpoint that serves the Echo application on a single port/protocol.

func New

func New(cfg Config) (Instance, error)

New creates a new endpoint Instance.

type IsServerReadyFunc

type IsServerReadyFunc func() bool

IsServerReadyFunc is a function that indicates whether the server is currently ready to handle traffic.

type OnReadyFunc

type OnReadyFunc func()

OnReadyFunc is a callback function that informs the server that the endpoint is ready.

Jump to

Keyboard shortcuts

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