http

package
v0.0.0-...-fb57439 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: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Messages = messages{
	Success: successMessages{
		ListingCreated: "http_success_listing_created",
		ListingUpdated: "http_success_listing_updated",
		Ok:             "http_success_ok",
	},
	Error: errorMessages{
		RequiredAuth:            "http_error_required_auth",
		CurrentUserAccess:       "http_error_current_user_access",
		AdminRoute:              "http_error_admin_route",
		RequiredBusinessSelect:  "http_error_required_business_select",
		ForbiddenBusinessSelect: "http_error_forbidden_business_select",
		RequiredAccountSelect:   "http_error_required_account_select",
		ForbiddenAccountSelect:  "http_error_forbidden_account_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