Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ControllerModule = fx.Module( "controllers", fx.Provide(NewInfoController), fx.Provide(NewBasicAuthentificationController), )
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
Click to show internal directories.
Click to hide internal directories.