terminal

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNewSessionRefused = errors.New("refusing to register new session")

Functions

This section is empty.

Types

type Option

type Option func(*Terminal)

func WithTrustedSecret

func WithTrustedSecret(trustedSecret string) Option

type Terminal

type Terminal struct {
	NewSessionChan chan *session.Session
	// contains filtered or unexported fields
}

func New

func New(locator string, opts ...Option) *Terminal

func (*Terminal) Close

func (terminal *Terminal) Close() error

func (*Terminal) FindSession

func (terminal *Terminal) FindSession(token string) *session.Session

func (*Terminal) IsSecretValid

func (terminal *Terminal) IsSecretValid(secret string) bool

func (*Terminal) Locator

func (terminal *Terminal) Locator() string

func (*Terminal) RegisterSession

func (terminal *Terminal) RegisterSession(session *session.Session) error

func (*Terminal) UnregisterSession

func (terminal *Terminal) UnregisterSession(session *session.Session)

Jump to

Keyboard shortcuts

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