Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ControlMap = make(map[uuid.UUID]*Control)
View Source
var ControlMapLock sync.RWMutex
View Source
var OldTunnelLock sync.Mutex
View Source
var OldTunnelMap = make(map[uuid.UUID]map[string]msg.Tunnel)
View Source
var TunnelMap = make(map[string]*Tunnel)
View Source
var TunnelMapLock sync.RWMutex
Functions ¶
func LoadConfig ¶
func PipeHandShake ¶
func PipeHandShake(conn net.Conn, phs *msg.PipeClientHello) error
Types ¶
type Config ¶
type Config struct { Debug bool `yaml:"debug,omitempty"` LogFile string `yaml:"log_file,omitempty"` ListenPort int `yaml:"port,omitempty"` ListenIP string `yaml:"ip,omitempty"` HttpPort uint16 `yaml:"http_port,omitempty"` HttpsPort uint16 `yaml:"https_port,omitempty"` ManagePort uint16 `yaml:"manage_port,omitempty"` ServerDomain string `yaml:"server_domain,omitempty"` Aes Aes `yaml:"aes,omitempty"` Tls Tls `yaml:"tls,omitempty"` AuthEnable bool `yaml:"auth_enable,omitempty"` AuthUrl string `yaml:"auth_url,omitempty"` NotifyEnable bool `yaml:"notify_enable,omitempty"` NotifyUrl string `yaml:"notify_url,omitempty"` NotifyKey string `yaml:"notify_key,omitempty"` DSN string `yaml:"dsn,omitempty"` RelicLicense string `yaml:"relic,omitempty"` Health Health `yaml:"health,omitempty"` MaxIdlePipes string `yaml:"max_idle_pipes,omitempty"` MaxStreams string `yaml:"max_streams,omitempty"` PProfEnable bool `yaml:"pprof_enable,omitempty"` }
type Control ¶
type Control struct { ClientID uuid.UUID // contains filtered or unexported fields }
func NewControl ¶
func (*Control) GenerateClientId ¶
func (c *Control) GenerateClientId() uuid.UUID
func (*Control) ServerAddTunnels ¶
func (c *Control) ServerAddTunnels(sstm *msg.AddTunnels)
add or update tunnel stat
func (*Control) ServerHandShake ¶
Click to show internal directories.
Click to hide internal directories.