controlplane

package
v0.0.0-...-0ade494 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 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
	WorkspaceToken string
	InstanceID     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