controllers

package
v0.0.0-...-ff63446 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ControllerModule for fx

View Source
var (
	// Sent when the request is malformed
	HTTPErrRequestMalformed httperrors.HTTPError = httperrors.NewHTTPError(
		http.StatusBadRequest,
		"Request malformed",
		"The schema of the received data is not correct",
		nil,
		false)
)

Functions

This section is empty.

Types

type BasicAuthentificationController

type BasicAuthentificationController interface {
	BasicLoginHandler(http.ResponseWriter, *http.Request) (any, httperrors.HTTPError)
	Logout(http.ResponseWriter, *http.Request) (any, httperrors.HTTPError)
}

Basic Authentification Controller

func NewBasicAuthentificationController

func NewBasicAuthentificationController(
	logger *zap.Logger,
	userService userservice.UserService,
	sessionService sessionservice.SessionService,
) BasicAuthentificationController

BasicAuthentificationController contructor

type InformationController

type InformationController interface {
	// Return the badaas server informations
	Info(response http.ResponseWriter, r *http.Request) (any, httperrors.HTTPError)
}

The information controller

func NewInfoController

func NewInfoController() InformationController

The InformationController constructor

Jump to

Keyboard shortcuts

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