controllers

package
v0.0.0-...-3888536 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Locale
	ContextKeyLocale = "locale"

	// Response viewmodel
	ContextKeyResponseViewmodel = "response_viewmodel"

	// Error handled
	ContextKeyErrorHandled = "error_handled"

	// Request viewmodel
	ContextKeyRequestViewmodel = "request_viewmodel"

	// Status code
	ContextKeyStatusCode = "status_code"

	// Translator
	ContextKeyTranslator = "translator"

	// Error
	ContextKeyInvalidFields = "invalid_fields"
)

Define context keys for gin.Context

Variables

This section is empty.

Functions

This section is empty.

Types

type Router

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

func NewRouter

func NewRouter(logger *zap.Logger, svc services.ServiceInterface) *Router

func (*Router) Run

func (rtr *Router) Run(addr string) error

Jump to

Keyboard shortcuts

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