Versions in this module Expand all Collapse all v1 v1.0.3 Jun 8, 2023 v1.0.2 Jun 8, 2023 v1.0.1 Jun 5, 2023 Changes in this version + type AddClientInfo struct + Remark string + VerifyKey string + type AddTunnelInfo struct + ClientId int64 + ModType ModType + Port int64 + Remark string + Target int64 + type Client struct + Addr string + Cnf ClientCnf + ConfigConnAllow bool + Flow Flow + Id int64 + IsConnect bool + MaxConn int64 + MaxTunnelNum int64 + NoDisplay bool + NoStore bool + NowConn int64 + Rate ClientRate + RateLimit int64 + Remark string + Status bool + VerifyKey string + Version string + WebPassword string + WebUserName string + type ClientCnf struct + Compress bool + Crypt bool + P string + U string + type ClientRate struct + NowRate int64 + type Flow struct + ExportFlow int64 + FlowLimit int64 + InletFlow int64 + type ListClientFilter struct + Limit int64 + Search string + Start int64 + type ListClientResponse struct + BridgePort int64 + BridgeType string + Ip string + Rows []Client + Total int64 + type ListTunnelFilter struct + ClientId int64 + Limit int64 + ModeType ModType + Offset int64 + Search string + type ListTunnelResponse struct + Rows []Tunnel + Total int64 + type ModType int8 + const ModTypeHttpProx + const ModTypeP2p + const ModTypeSecret + const ModTypeSocks5 + const ModTypeTcp + const ModTypeUdp + func (m ModType) String() string + type Sever struct + ApiPort int + AuthKey string + Host string + ProxyPort int + func NewSever(host, authKey string, apiPort, proxyPort int) *Sever + func (s *Sever) AddClient(info AddClientInfo) error + func (s *Sever) AddTunnel(tunnel AddTunnelInfo) error + func (s *Sever) DeleteClient(clientId int64) error + func (s *Sever) DeleteTunnel(tunnelId int64) error + func (s *Sever) GetClient(clientId int64) (client Client, err error) + func (s *Sever) GetClientList(filter ListClientFilter) (clients ListClientResponse, err error) + func (s *Sever) GetClientTunnel(filter ListTunnelFilter) (tunnels ListTunnelResponse, err error) + type Tunnel struct + Client Client + Flow Flow + HealthCheckInterval int64 + HealthCheckTarget string + HealthCheckTimeout int64 + HealthCheckType string + HealthMap map[string]interface{} + HealthMaxFail int64 + HealthNextTime string + HealthRemoveArr interface{} + HttpHealthUrl string + Id int64 + LocalPath string + Mode string + MultiAccount interface{} + NoStore bool + Password string + Port int64 + Ports string + Remark string + RunStatus bool + ServerIp string + Status bool + StripPre string + Target TunnelTarget + TargetAddr string + type TunnelTarget struct + LocalProxy bool + TargetArr interface{} + TargetStr string v1.0.0 Jun 5, 2023