client

package
v0.0.0-...-b9db054 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadClient

func LoadClient(m *Client) error

func LoadClients

func LoadClients() error

func Shutdown

func Shutdown() error

func Startup

func Startup() error

Types

type Client

type Client struct {
	tunnel.Tunnel `xorm:"extends"`

	Net  string `json:"net,omitempty"`  //类型 tcp udp
	Addr string `json:"addr,omitempty"` //地址,主机名或IP
	Port uint16 `json:"port,omitempty"` //端口号
}

Client 网络链接

func GetClient

func GetClient(id string) *Client

func (*Client) Open

func (c *Client) Open() error

Open 打开

Jump to

Keyboard shortcuts

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