Back to godoc.org

Package controller

v0.0.0-...-80bf6b7
Latest Go to latest

The latest major version is .

Published: Apr 4, 2020 | License: MIT | Module: github.com/starptech/go-web

Index

type Healthcheck

type Healthcheck struct{}

func (Healthcheck) GetHealthcheck

func (ctrl Healthcheck) GetHealthcheck(c echo.Context) error

GetHealthcheck returns the current functional state of the application

type User

type User struct{}

func (User) GetUser

func (ctrl User) GetUser(c echo.Context) error

func (User) GetUserJSON

func (ctrl User) GetUserJSON(c echo.Context) error

type UserList

type UserList struct{}

func (UserList) GetUsers

func (ctrl UserList) GetUsers(c echo.Context) error

type UserListViewModel

type UserListViewModel struct {
	Users []UserViewModel
}

type UserViewModel

type UserViewModel struct {
	Name string
	ID   string
}

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