language

package
v0.0.0-...-c52fe67 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Language service.LanguageService
}

func NewHandler

func NewHandler(p Params) Handler

func (Handler) Create

func (h Handler) Create(c echo.Context) error

swagger:route POST /languages languages reqLanguageCreate

Create language

This endpoint will create the language and return the language structure

Responses:
  200: Language
  400: HTTPError
  404: HTTPError
  500: HTTPError

func (*Handler) List

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

swagger:route GET /languages languages listLanguages

Lists all available languages

This endpoint lists all available languages

Responses:
  default: HTTPError
  200: LanguageList
  400: HTTPError
  404: HTTPError
  500: HTTPError

func (Handler) Update

func (h Handler) Update(c echo.Context) error

swagger:route POST /languages languages reqLanguageUpdate

Create language

This endpoint will update the language and return the language structure

Responses:
  200: Language
  400: HTTPError
  404: HTTPError
  500: HTTPError

type Params

type Params struct {
	fx.In

	Language service.LanguageService
}

Jump to

Keyboard shortcuts

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