agent

package
v0.0.0-...-ccdaf39 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Watch

func Watch(ws *websocket.Conn, timeout time.Duration, handler func() error) error

Watch watches for broken WebSocket connection. This function periodically sends ping message to the websocket peer and invokes `handler` on first timeout. The caller must continuously read something from `ws` to allow pong messages to be received.

Types

type Agent

type Agent struct {
	AuthKey       string
	ServerAddress string
	EnableTLS     bool
	EnablePprof   bool
	CaFile        string
	CertFile      string
	KeyFile       string
	LocalAddress  string
}

Agent tunnels remote port on a gateway server to local destination.

func (*Agent) Start

func (agent *Agent) Start(ctx context.Context) error

Start starts

Jump to

Keyboard shortcuts

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