http

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Messages = messages{
	Success: successMessages{
		FeatureCreate:  "http_success_feature_create",
		FeatureUpdate:  "http_success_feature_update",
		FeatureDelete:  "http_success_feature_delete",
		FeatureDisable: "http_success_feature_disable",
		FeatureEnable:  "http_success_feature_enable",
		FeatureList:    "http_success_feature_list",
		FeatureDetail:  "http_success_feature_detail",
		PlaceCreate:    "http_success_place_create",
		PlaceUpdate:    "http_success_place_update",
		PlaceDelete:    "http_success_place_delete",
		PlaceDisable:   "http_success_place_disable",
		PlaceEnable:    "http_success_place_enable",
		PlaceFilter:    "http_success_place_filter",
		PlaceView:      "http_success_place_view",
	},
	Error: errorMessages{
		RequiredAuth:      "http_error_required_auth",
		CurrentUserAccess: "http_error_current_user_access",
		AdminRoute:        "http_error_admin_route",
	},
}

Functions

This section is empty.

Types

type Config

type Config struct {
	App         app.Application
	I18n        i18np.I18n
	Validator   validator.Validator
	Context     context.Context
	HttpHeaders config.HttpHeaders
	TokenSrv    token.Service
	SessionSrv  session.Service
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func New

func New(config Config) Server

func (Server) AdminFeatureDetail

func (h Server) AdminFeatureDetail(ctx *fiber.Ctx) error

func (Server) AdminFeatureList

func (h Server) AdminFeatureList(ctx *fiber.Ctx) error

func (Server) FeatureCreate

func (h Server) FeatureCreate(ctx *fiber.Ctx) error

func (Server) FeatureDelete

func (h Server) FeatureDelete(ctx *fiber.Ctx) error

func (Server) FeatureDisable

func (h Server) FeatureDisable(ctx *fiber.Ctx) error

func (Server) FeatureEnable

func (h Server) FeatureEnable(ctx *fiber.Ctx) error

func (Server) FeatureList

func (h Server) FeatureList(ctx *fiber.Ctx) error

func (Server) FeatureUpdate

func (h Server) FeatureUpdate(ctx *fiber.Ctx) error

func (Server) Load

func (h Server) Load(router fiber.Router) fiber.Router

func (Server) PlaceAdminFilter

func (h Server) PlaceAdminFilter(ctx *fiber.Ctx) error

func (Server) PlaceAdminView

func (h Server) PlaceAdminView(ctx *fiber.Ctx) error

func (Server) PlaceCreate

func (h Server) PlaceCreate(ctx *fiber.Ctx) error

func (Server) PlaceDelete

func (h Server) PlaceDelete(ctx *fiber.Ctx) error

func (Server) PlaceDisable

func (h Server) PlaceDisable(ctx *fiber.Ctx) error

func (Server) PlaceEnable

func (h Server) PlaceEnable(ctx *fiber.Ctx) error

func (Server) PlaceFilter

func (h Server) PlaceFilter(ctx *fiber.Ctx) error

func (Server) PlaceUpdate

func (h Server) PlaceUpdate(ctx *fiber.Ctx) error

func (Server) PlaceView

func (h Server) PlaceView(ctx *fiber.Ctx) error

Directories

Path Synopsis
dto
req
res

Jump to

Keyboard shortcuts

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