Back to / internal / handler / http / localization_language

Package localization_language

Latest Go to latest

The latest major version is .

Published: Oct 5, 2020 | License: GPL3 | Module:


type Handler

type Handler struct {
	LocalizationService service.LocalizationService
	View                View

func NewHandler

func NewHandler(p Params) Handler

func (*Handler) List

func (h *Handler) List(c echo.Context) error

swagger:route GET /localization-languages localization_languages listLocalizationLanguages

Lists all available localization languages

This endpoint lists all available localization languages

  default: HTTPError
  200: LocalizationLanguageList
  400: HTTPError
  404: HTTPError
  500: HTTPError

type Item

type Item struct {
	// example: 12
	ID uint `json:"id"`

	// example: eng
	Code string `json:"code"`

	// example: english
	Language string `json:"language"`

swagger:model LocalizationLanguage

type List

type List []Item

swagger:model LocalizationLanguageList

type Params

type Params struct {

	LocalizationService service.LocalizationService
	View                View

type View

type View struct{}

func NewView

func NewView() View

func (View) View

func (v View) View(item entity.LocalizationLanguage) Item

func (View) ViewList

func (v View) ViewList(items []entity.LocalizationLanguage) List

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier