Back to

Package tag

Latest Go to latest

The latest major version is .

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


type Handler

type Handler struct {
	Tag  service.TagService
	View View

func NewHandler

func NewHandler(p Params) Handler

func (*Handler) List

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

swagger:route GET /tags tags listTags

Lists all available tags

This endpoint lists all available tags

  default: HTTPError
  200: TagList
  500: HTTPError

type Item

type Item struct {
	// read-only: true
	// example: 12
	ID uint `json:"id"`

	// example: RPG
	// read-only: true
	Name string `json:"name"`

swagger:model Tag

type List

type List []Item

swagger:model TagList

type Params

type Params struct {

	Tag  service.TagService
	View View

type View

type View struct{}

func NewView

func NewView() View

func (View) View

func (v View) View(t entity.Tag) Item

func (View) ViewList

func (v View) ViewList(tags []entity.Tag) 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