remote

package
v0.0.0-...-ee45651 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseRemote

type BaseRemote interface {
	Connect(string) (io.ReadWriteCloser, error)
	// Test is a function try to connect remote server and return delay time
	Test() (int, error)
	Config(*RemoteConfig) error
}

type QUICRemote

type QUICRemote struct {
	// contains filtered or unexported fields
}

func (*QUICRemote) Config

func (q *QUICRemote) Config(config *RemoteConfig) error

func (*QUICRemote) Connect

func (q *QUICRemote) Connect(target string) (io.ReadWriteCloser, error)

func (*QUICRemote) Test

func (q *QUICRemote) Test() (int, error)

type RemoteConfig

type RemoteConfig struct {
	Host    string
	Port    int
	TimeOut time.Time
}

func (*RemoteConfig) Address

func (r *RemoteConfig) Address() string

type WebSocketRemote

type WebSocketRemote struct {
	// contains filtered or unexported fields
}

func (*WebSocketRemote) Config

func (w *WebSocketRemote) Config(config *RemoteConfig) error

func (*WebSocketRemote) Connect

func (w *WebSocketRemote) Connect(target string) (io.ReadWriteCloser, error)

func (*WebSocketRemote) Test

func (w *WebSocketRemote) Test() (int, error)

Jump to

Keyboard shortcuts

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