http

package
v0.0.0-...-74567be Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: GPL-3.0 Imports: 28 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",
		RequiredAccountSelect:   "http_error_required_account_select",
		ForbiddenAccountSelect:  "http_error_forbidden_account_select",
		RequiredBusinessSelect:  "http_error_required_business_select",
		ForbiddenBusinessSelect: "http_error_forbidden_business_select",
	},
}

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
}

Jump to

Keyboard shortcuts

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