handlers

package
v0.0.0-...-8b55f26 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: EUPL-1.2 Imports: 19 Imported by: 0

Documentation

Overview

Package handlers contains the HTTP request handlers for the FSC Auth plugin.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthHandler

func AuthHandler(cfg *config.Config, logger *slog.Logger) fiber.Handler

AuthHandler instantiates an authorization endpoint handler.

func Health

func Health(fc *fiber.Ctx) error

Health is the endpoint for health checks.

There are no internal service checks, so for now it will always respond with a static OK message.

func SendBasicResponse

func SendBasicResponse(req *fiber.Ctx, status int) error

SendBasicResponse sends a basic response corresponding with the given status code. If the given status code is not in the supported statuses list, an empty body will be sent.

func SendMessageResponse

func SendMessageResponse(req *fiber.Ctx, status int, msg string) error

SendMessageResponse sends a basic response corresponding with the given status code.

Types

This section is empty.

Jump to

Keyboard shortcuts

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