Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitLogger ¶
func InitLogger(config LoggingConfig)
InitLogger initializes log/slog with a zerolog backend
func LogRequest ¶
LogRequest logs the incoming HTTP requests
func LogResponse ¶
LogResponse logs the HTTP responses
func WriteOut ¶
func WriteOut(w http.ResponseWriter, status int, body *BaseResponse)
WriteOut writes the response to the client
Types ¶
type AuthzServer ¶
AuthzServer is the HTTP server
func NewAuthzServer ¶
NewAuthzServer creates a new HTTP server
func (*AuthzServer) RegisterRoutes ¶
func (s *AuthzServer) RegisterRoutes(wantAuthzHeader string)
RegisterRoutes registers the routes
type BaseResponse ¶
type BaseResponse struct {
Message string `json:"message"`
}
BaseResponse is the base response
type LoggingConfig ¶
LoggingConfig holds the configuration for the logger.
Click to show internal directories.
Click to hide internal directories.