http

package
v0.0.0-...-d868565 Latest Latest
Warning

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

Go to latest
Published: May 25, 2024 License: GPL-3.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Messages = messages{
	Success: successMessages{
		Ok: "http_success_ok",
	},
	Error: errorMessages{
		RequiredAuth:          "http_error_required_auth",
		CurrentUserAccess:     "http_error_current_user_access",
		AdminRoute:            "http_error_admin_route",
		TurnstileBadRequest:   "http_error_turnstile_bad_request",
		TurnstileUnauthorized: "http_error_turnstile_unauthorized",
	},
}

Functions

func New

func New(config Config) server.Server

Types

type Config

type Config struct {
	Env          config.App
	App          app.Application
	I18n         *i18np.I18n
	Validator    validation.Validator
	HttpHeaders  config.HttpHeaders
	TokenSrv     token.Service
	SessionSrv   session.Service
	TurnstileSrv turnstile.Service
	VerifySrv    verify.Service
}

Jump to

Keyboard shortcuts

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