tunnelinstance

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TunnelInstance

type TunnelInstance interface {
	Write(data []byte) error

	Open(context.Context) error

	Close() error

	Running() bool

	Online() bool

	//Pipe 透传
	Pipe(pipe io.ReadWriteCloser)

	//Ask 发送指令,接收数据
	Ask(cmd []byte, timeout time.Duration) ([]byte, error)
}

Tunnel 通道

Jump to

Keyboard shortcuts

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