Versions in this module Expand all Collapse all v1 v1.26.4 Nov 28, 2025 v1.26.3 Nov 23, 2025 Changes in this version + type ClientAuth int + const ClientAuthAccept + const ClientAuthDeny + const ClientAuthPending + func (ca ClientAuth) String() string + type Response struct + ClientAuth ClientAuth + ClientConfig string + ClientID uint32 + Message string + Timeout string + type Server struct + func NewServer(logger *slog.Logger, password string) *Server + func (s *Server) AuthPendingPoller(clientID uint64, timeout time.Duration) (*Response, error) + func (s *Server) ClientAuth(clientID uint64, message string) (*Response, error) + func (s *Server) ClientDisconnect(message string) error + func (s *Server) Close() + func (s *Server) Listen(ctx context.Context, addr string) error