http

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Messages = messages{
	Success: successMessages{
		CategoryCreated:      "http_success_category_created",
		CategoryUpdated:      "http_success_category_updated",
		CategoryOrderUpdated: "http_success_category_order_updated",
		CategoryDeleted:      "http_success_category_deleted",
		CategoryEnabled:      "http_success_category_enabled",
		CategoryDisabled:     "http_success_category_disabled",
		CategoryView:         "http_success_category_view",
		CategoryAdminView:    "http_success_category_admin_view",
		CategoryList:         "http_success_category_list",
		CategoryListChild:    "http_success_category_list_child",
	},
	Error: errorMessages{
		RequiredAuth:      "http_error_required_auth",
		CurrentUserAccess: "http_error_current_user_access",
		AdminRoute:        "http_error_admin_route",
	},
}

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