Versions in this module Expand all Collapse all v3 v3.0.1 Jan 24, 2025 v3.0.0 Oct 26, 2024 Changes in this version + var ErrDialInProgress = errors.New("another dial is in progress") + var ErrNoDialAddress = errors.New("no dial address is configured") + var Homepage = "https://github.com/hexian000/tlswrapper" + var Version = "dev" + func AppMain(f *AppFlags) int + func RunHTTPServer(l net.Listener, s *Server) error + type AppFlags struct + Config string + DumpConfig bool + GenCerts string + Help bool + KeySize int + KeyType string + ServerName string + Sign string + func (f *AppFlags) Validate() error + type EmptyHandler struct + func (h *EmptyHandler) Serve(_ context.Context, accepted net.Conn) + type ForwardHandler struct + func (h *ForwardHandler) Serve(ctx context.Context, accepted net.Conn) + type Handler interface + Serve func(context.Context, net.Conn) + type Server struct + func NewServer(cfg *config.File) (*Server, error) + func (s *Server) Listen(addr string) (net.Listener, error) + func (s *Server) LoadConfig(cfg *config.File) error + func (s *Server) Serve(listener net.Listener, handler Handler) + func (s *Server) Shutdown() error + func (s *Server) Start() error + func (s *Server) Stats() (stats ServerStats) + type ServerStats struct + Accepted uint64 + Authorized uint64 + NumSessions int + NumStreams int + ReqSuccess uint64 + ReqTotal uint64 + Rx uint64 + Served uint64 + Tx uint64 + type TLSHandler struct + func (h *TLSHandler) Serve(ctx context.Context, conn net.Conn) + func (h *TLSHandler) Stats4Listener() (numSessions uint32, numHalfOpen uint32) + type TunnelHandler struct + func (h *TunnelHandler) Serve(ctx context.Context, accepted net.Conn) + type TunnelStats struct + LastChanged time.Time + Name string + NumSessions int + NumStreams int Other modules containing this package github.com/hexian000/tlswrapper github.com/hexian000/tlswrapper/v2