Versions in this module Expand all Collapse all v1 v1.0.0 Nov 20, 2022 Changes in this version + const BrowserWarningCookieName + const BrowserWarningHeaderName + const BrowserWarningNoScriptText + const DefaultNoScriptText + var ClientMinimumVersion = "1.0.0" + func CheckClientUp(ver string) bool + func CheckUpdates() *gover.Version + type AppMessage struct + Data string + NoScriptText string + Title string type Config + Log *Log + Server *Server + type Connection struct + func (c *Connection) Close() + func (c *Connection) Conn() *tunl.TunlConn + func (c *Connection) GetHost() string + func (c *Connection) GetID() string + func (c *Connection) GetRemoteIP() string + func (c *Connection) IsAllowed() bool + func (c *Connection) SetAllowed(allow bool) + func (c *Connection) SetHost(host string) + type ErrorCode int + const ErrorBrowserWarning + const ErrorConnectClient + const ErrorReceiveData + const ErrorUndefinedClient + type Log struct + Enabled bool + LogDaily bool + LogDir string + type Server struct + CertFile string + Debug bool + HTTPAddr string + HTTPPort string + IdleTimeout int + KeepAlive bool + KeyFile string + ReadTimeout int + SSL bool + ThreadCount int + type Tunl struct + Addr string + BrowserWarning bool + ClientExpireAt int + Domain string + MaxClients int + MaxPostSize int + MaxTimeout int + Port string + SchemeHttps bool + ServerPassword string + ServerPrivate bool + UriPrefixSize int v0 v0.1.29 Aug 29, 2022 Changes in this version + var ErrorIdBusy = errors.New("connection id is busy") + var Version = "0.1.29" + type BaseConfig struct + CertFile string + Debug bool + HTTPAddr string + HTTPPort string + IdleTimeout int + KeepAlive bool + KeyFile string + ReadTimeout int + SSL bool + ThreadCount int + type Config struct + Base *BaseConfig + Tunl *TunlConfig + func LoadConfig() (*Config, error) + type ConnectionPool struct + func NewConnectionPool(prefixSize int) *ConnectionPool + func (p *ConnectionPool) CloseChannels(uuid string) + func (p *ConnectionPool) Count() int + func (p *ConnectionPool) Drop(id string) + func (p *ConnectionPool) Get(id string) *tunl.TunlConn + func (p *ConnectionPool) GetBodyChunkChan(uuid string) chan *commands.BodyChunk + func (p *ConnectionPool) GetResponseChan(uuid string) chan *commands.HttpResponse + func (p *ConnectionPool) IsAllowed(id string) bool + func (p *ConnectionPool) MakeBodyChunkChan(uuid string) chan *commands.BodyChunk + func (p *ConnectionPool) MakeResponseChan(uuid string) chan *commands.HttpResponse + func (p *ConnectionPool) Push(conn *tunl.TunlConn) error + func (p *ConnectionPool) SetAllowed(id string) + type JsonData map[string]interface + type TunlConfig struct + ClientExpireAt int + ClientPublicAddr string + ClientSubDomain string + MaxClients int + MaxPostSize int + MaxTimeout int + ServerPassword string + ServerPrivate bool + TunlAddr string + TunlPort string + UriPrefixSize int + type TunlHttp struct + func NewTunlHttp(conf *Config, ctx context.Context) *TunlHttp + func (s *TunlHttp) Shutdown() + func (s *TunlHttp) Start() + type TunlServer struct + func NewTunlServer(conf *TunlConfig) *TunlServer + func (s *TunlServer) GetPool() *ConnectionPool + func (s *TunlServer) Run(conf *Config) error + func (s *TunlServer) Start(conf Config) error