Versions in this module Expand all Collapse all v1 v1.0.0 Mar 27, 2026 Changes in this version + type Config struct + Auth string + AuthFile string + KeepAlive time.Duration + KeyFile string + KeySeed string + OTELEnabled bool + OTELEndpoint string + Proxy string + Reverse bool + Socks5 bool + TLS TLSConfig + type EndpointSnapshot struct + Descriptor string + LastError string + SessionID string + Status EndpointStatus + UpdatedAt time.Time + type EndpointStatus string + const EndpointStatusActive + const EndpointStatusClosed + const EndpointStatusFailed + const EndpointStatusPending + type MonitorCounters struct + ActiveEndpoints int + ClosedEndpoints int + ConnectedSessions int + DisconnectedSessions int + FailedEndpoints int + FailedSessions int + PendingEndpoints int + PendingSessions int + type MonitorSnapshot struct + Counters MonitorCounters + Endpoints []EndpointSnapshot + Sessions []SessionSnapshot + type Server struct + func NewServer(c *Config) (*Server, error) + func (s *Server) AddUser(user, pass string, addrs ...string) error + func (s *Server) Close() error + func (s *Server) DeleteUser(user string) + func (s *Server) GetFingerprint() string + func (s *Server) MonitorSnapshot() MonitorSnapshot + func (s *Server) ResetUsers(users []*settings.User) + func (s *Server) Run(host, port string) error + func (s *Server) Start(host, port string) error + func (s *Server) StartContext(ctx context.Context, host, port string) error + func (s *Server) Wait() error + type SessionSnapshot struct + ConnectedAt time.Time + Error string + RemoteAddr string + SessionID string + StartedAt time.Time + Status SessionStatus + UpdatedAt time.Time + type SessionStatus string + const SessionStatusConnected + const SessionStatusDisconnected + const SessionStatusFailed + const SessionStatusPending + type TLSConfig struct + CA string + Cert string + Domains []string + Key string