define

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: GPL-3.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterFactory

func RegisterFactory(protocol string, factory Factory)

Types

type Conn

type Conn interface {
	io.ReadWriteCloser
	SetReadTimeout(t time.Duration) error
}

type Factory

type Factory func(conn Conn, opts string) (Poller, error)

type Poller

type Poller interface {
	Load(tunnel string) error
	Poll(interval uint) bool //
	Close() error
}

func CreatePoller

func CreatePoller(conn Conn, protocol string, opts string) (Poller, error)

type Tunnel

type Tunnel interface {
	Conn

	Open() error

	Running() bool

	Online() bool
}

Tunnel 通道

Jump to

Keyboard shortcuts

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