Documentation ¶
Index ¶
- Variables
- type LocatorGenerator
- type Option
- type TerminalServer
- func (ts *TerminalServer) ControlChannel(channel api.HostService_ControlChannelServer) error
- func (ts *TerminalServer) DataChannel(channel api.HostService_DataChannelServer) error
- func (ts *TerminalServer) Run(ctx context.Context) (err error)
- func (ts *TerminalServer) TerminalChannel(channel api.GuestService_TerminalChannelServer) error
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 WithLocatorGenerator ¶
func WithLocatorGenerator(locatorGenerator LocatorGenerator) Option
func WithLogger ¶
func WithTLSConfig ¶
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) TerminalChannel ¶
func (ts *TerminalServer) TerminalChannel(channel api.GuestService_TerminalChannelServer) error
Click to show internal directories.
Click to hide internal directories.