server

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNewTerminalRefused = errors.New("refusing to register new terminal")

Functions

This section is empty.

Types

type LocatorGenerator

type LocatorGenerator func() string

type Option

type Option func(*TerminalServer)

func WithAddresses

func WithAddresses(addresses []string) Option

func WithLocatorGenerator

func WithLocatorGenerator(locatorGenerator LocatorGenerator) Option

func WithLogger

func WithLogger(logger *logrus.Logger) Option

func WithTLSConfig

func WithTLSConfig(tlsConfig *tls.Config) Option

type TerminalServer

type TerminalServer struct {
	api.UnimplementedGuestServiceServer
	api.UnimplementedHostServiceServer
	// contains filtered or unexported fields
}

func New

func New(opts ...Option) (*TerminalServer, error)

func (*TerminalServer) ControlChannel

func (ts *TerminalServer) ControlChannel(channel api.HostService_ControlChannelServer) error

func (*TerminalServer) DataChannel

func (ts *TerminalServer) DataChannel(channel api.HostService_DataChannelServer) error

func (*TerminalServer) Run

func (ts *TerminalServer) Run(ctx context.Context) (err error)

func (*TerminalServer) TerminalChannel

func (ts *TerminalServer) TerminalChannel(channel api.GuestService_TerminalChannelServer) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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