controllers

package
v0.0.0-...-5c919d2 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthBody

type AuthBody struct {
	Email    string `json: "email"`
	Password string `json: "password"`
}

type Clothes

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

Clothes represents a clothes controller

func NewClothesController

func NewClothesController(cs models.ClothesStore) Clothes

NewClothesController creates a new Clothes controller

func (*Clothes) Create

func (cc *Clothes) Create(c echo.Context) error

func (*Clothes) GetAll

func (cc *Clothes) GetAll(c echo.Context) error

func (*Clothes) GetByID

func (cc *Clothes) GetByID(c echo.Context) error

func (*Clothes) GetByType

func (cc *Clothes) GetByType(c echo.Context) error

type Users

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

Users represents a users controller

func NewUsersController

func NewUsersController(us models.UserStore) Users

NewUsersController creates a new users controller

func (*Users) Create

func (u *Users) Create(c echo.Context) error

func (*Users) GetByID

func (u *Users) GetByID(c echo.Context) error

func (*Users) Login

func (u *Users) Login(c echo.Context) error

func (*Users) Update

func (u *Users) Update(c echo.Context) error

Jump to

Keyboard shortcuts

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