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
}