Versions in this module Expand all Collapse all v0 v0.2.0 Dec 16, 2023 Changes in this version + const EndpointAddr + const ServerAddr + const ServerName + func Add(s Tunnel) + func ChainConfig(id string, name string) *xconfig.ChainConfig + func Count() int + func Delete(id string) + func SaveConfig() error + func Set(s Tunnel) type Option + func KeepaliveOption(b bool) Option + func TTLOption(ttl int) Option type Options + Keepalive bool + TTL int type Tunnel + func Get(id string) Tunnel + func GetIndex(index int) Tunnel + Err func() error v0.1.0 Dec 14, 2023 Changes in this version + const FileTunnel + const HTTPTunnel + const TCPTunnel + const UDPTunnel + var ErrTunnelClosed = errors.New("tunnel closed") + func AddTunnel(s Tunnel) + func DeleteTunnel(id string) + func LoadConfig() + func SaveTunnel() error + func SetTunnel(s Tunnel) + func TunnelCount() int + type Option func(opts *Options) + func EnableTLSOption(b bool) Option + func EndpointOption(endpoint string) Option + func HostnameOption(hostname string) Option + func IDOption(id string) Option + func NameOption(name string) Option + func PasswordOption(password string) Option + func UsernameOption(username string) Option + type Options struct + EnableTLS bool + Endpoint string + Hostname string + ID string + Name string + Password string + Username string + type Tunnel interface + Close func() error + Endpoint func() string + Entrypoint func() string + Favorite func(b bool) + ID func() string + IsClosed func() bool + IsFavorite func() bool + Name func() string + Options func() Options + Run func() error + Type func() string + func GetTunnel(index int) Tunnel + func GetTunnelID(id string) Tunnel + func NewFileTunnel(opts ...Option) Tunnel + func NewHTTPTunnel(opts ...Option) Tunnel + func NewTCPTunnel(opts ...Option) Tunnel + func NewUDPTunnel(opts ...Option) Tunnel