http

package
v0.0.0-...-d6f550b Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: GPL-3.0 Imports: 27 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",
		NotFound:               "http_error_not_found",
	},
}

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