server

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 26 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Tunnels map[api.Tunnel]TunnelFn = map[api.Tunnel]TunnelFn{}
)

Functions

func NewAgent

func NewAgent(c agent.Config) agent.Agent

func NewLys

func NewLys() *lys

func NewRPC

func NewRPC(conn net.Conn) agent.RPC

func StartFileServer

func StartFileServer(c agent.Config) chan net.Conn

func StartPingServer

func StartPingServer(c agent.Config) chan net.Conn

func StartTerminalServer

func StartTerminalServer(c agent.Config) chan net.Conn

func StartVersionServer

func StartVersionServer(c agent.Config) chan net.Conn

func StartXpraServer

func StartXpraServer(c agent.Config) chan net.Conn

Types

type TunnelFn

type TunnelFn = func(agent.Config) chan net.Conn

type YS

type YS struct {
	net.Conn
	*bufio.Scanner
	// contains filtered or unexported fields
}

func (*YS) Actions

func (ys *YS) Actions() <-chan func(agent.Agent)

func (*YS) Close

func (ys *YS) Close()

func (*YS) Done

func (ys *YS) Done() <-chan struct{}

Jump to

Keyboard shortcuts

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