controller

package
v0.0.0-...-2b9378c Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandlers

func NewHandlers(instance *echo.Echo, r *Controller)

Types

type Controller

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

func NewController

func NewController(repository person.Repository) *Controller

func (Controller) Get

func (r Controller) Get(c echo.Context) error

@Summary Get Persons @Description Get Persons @Tags Person @Accept json @Produce json @Param page path string true "Page" @Success 200 {object} person.Person @Failure 400 id person.Person @Router /api/v1/ [get]

func (Controller) GetBySlug

func (r Controller) GetBySlug(c echo.Context) error

Jump to

Keyboard shortcuts

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