management

package
v1.26.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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 NewServer

func NewServer(logger *slog.Logger, password string) *Server

func (*Server) AuthPendingPoller

func (s *Server) AuthPendingPoller(clientID uint64, timeout time.Duration) (*Response, error)

func (*Server) ClientAuth

func (s *Server) ClientAuth(clientID uint64, message string) (*Response, error)

func (*Server) ClientDisconnect

func (s *Server) ClientDisconnect(message string) error

func (*Server) Close

func (s *Server) Close()

func (*Server) Listen

func (s *Server) Listen(ctx context.Context, addr string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL