Documentation
¶
Overview ¶
Package authproto defines shared authentication protocol types Used by both pkg/auth and cmd/nftban-ui-auth to ensure consistency
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthRequest ¶
AuthRequest represents a login request
type AuthResponse ¶
type AuthResponse struct {
Success bool `json:"success"`
Message string `json:"message,omitempty"`
Error string `json:"error,omitempty"`
}
AuthResponse represents the authentication result
func NewErrorResponse ¶
func NewErrorResponse(err string) AuthResponse
NewErrorResponse creates an error auth response
func NewSuccessResponse ¶
func NewSuccessResponse(message string) AuthResponse
NewSuccessResponse creates a successful auth response
Click to show internal directories.
Click to hide internal directories.