Documentation
¶
Index ¶
- type ClientAuth
- type Response
- type 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientAuth ¶
type ClientAuth int
const ( ClientAuthAccept ClientAuth = iota ClientAuthDeny ClientAuthPending )
func (ClientAuth) String ¶
func (ca ClientAuth) String() string
type Response ¶
type Response struct {
Message string
Timeout string
ClientConfig string
ClientAuth ClientAuth
ClientID uint32
}
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) AuthPendingPoller ¶
func (*Server) ClientAuth ¶
func (*Server) ClientDisconnect ¶
Click to show internal directories.
Click to hide internal directories.