controlplane

package
v1.5.0-rc.5 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthInfo

type AuthInfo struct {
	Service         string
	ConnectionToken string
	InstanceID      string
	TokenType       string
	Labels          map[string]string
}

type ConnHandler

type ConnHandler struct {
	GRPCServer *grpc.Server
	YamuxSess  *yamux.Session
	// contains filtered or unexported fields
}

func (*ConnHandler) Close

func (c *ConnHandler) Close() error

func (*ConnHandler) ServeOnConnection

func (c *ConnHandler) ServeOnConnection() error

type ConnectionManager

type ConnectionManager struct {
	AuthInfo        AuthInfo
	RegisterService func(*grpc.Server)
	RetryInterval   time.Duration
	UseTLS          bool
	Logger          LoggerI
	// contains filtered or unexported fields
}

func (*ConnectionManager) Apply

func (cm *ConnectionManager) Apply(url string, active bool)

type LoggerI

type LoggerI interface {
	Warn(a ...interface{})
	Warnf(format string, a ...interface{})
	Info(a ...interface{})
	Infof(format string, a ...interface{})
	Error(a ...interface{})
	Errorf(format string, a ...interface{})
}

Jump to

Keyboard shortcuts

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