session

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2020 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientSession

type ClientSession struct {
	Session
	OfferURL string
}

func (*ClientSession) Run

func (cs *ClientSession) Run() error

type HostSession

type HostSession struct {
	Session
	TmuxSession string
	TmuxClient  string
	Cmd         []string
	Pty         *os.File
	PtyReady    bool
}

func (*HostSession) Run

func (hs *HostSession) Run() error

type Session

type Session struct {
	Stdin, Stdout, Stderr *os.File
	Verbose               bool
	Debug                 *log.Logger
	UserAgent             string
	SDPServer             string
	IsTerminal            bool
	OldTerminalState      *term.State
	StunServers           []string
	ErrorChan             chan error
	PeerConnection        *webrtc.PeerConnection
	OfferSD               SessionDescription
	AnswerSD              SessionDescription
	DataChannel           *webrtc.DataChannel
}

type SessionDescription

type SessionDescription struct {
	SDP          string
	SDPURI       string
	SDPAnswerURI string
}

func (*SessionDescription) Decode

func (sd *SessionDescription) Decode(offer string) error

func (SessionDescription) Encode

func (sd SessionDescription) Encode() (string, error)

Jump to

Keyboard shortcuts

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