handler

package
v0.0.0-...-3c201f0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SECRET = []byte("secret")

SECRET uses to encode token for JWT.

Functions

This section is empty.

Types

type Board

type Board struct {
	ID     string `json:"id"`
	Title  string `json:"title"`
	Text   string `json:"text"`
	Lists  []List `json:"lists"`
	Color  string `json:"color"`
	Before string `json:"before"`
	After  string `json:"after"`
}

Board includes request data for Board.

type BoardHandler

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

BoardHandler includes a interactor for Board usecase.

func NewBoardHandler

func NewBoardHandler(i usecase.BoardUsecase) *BoardHandler

NewBoardHandler returns a new BoardHandler.

func (*BoardHandler) Create

func (h *BoardHandler) Create(c echo.Context) error

Create is http handler to create a board process.

func (*BoardHandler) Delete

func (h *BoardHandler) Delete(c echo.Context) error

Delete is http handler to delete a board process.

func (*BoardHandler) Get

func (h *BoardHandler) Get(c echo.Context) error

Get is http handler to get user's board process.

func (*BoardHandler) GetBoards

func (h *BoardHandler) GetBoards(c echo.Context) error

GetBoards is http handler to get user's boards process.

func (*BoardHandler) Move

func (h *BoardHandler) Move(c echo.Context) error

Move is http handler to move a board process.

func (*BoardHandler) Update

func (h *BoardHandler) Update(c echo.Context) error

Update is http handler to update a board process.

type Item

type Item struct {
	ID     string   `json:"id"`
	ListID string   `json:"list_id"`
	Title  string   `json:"title"`
	Text   string   `json:"text"`
	Tags   []string `json:"tags"`
	Before string   `json:"before"`
	After  string   `json:"after"`
}

Item includes request data for Item.

type ItemHandler

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

ItemHandler includes a interactor for Item usecase.

func NewItemHandler

func NewItemHandler(i usecase.ItemUsecase) ItemHandler

NewItemHandler returns a new ItemHandler.

func (*ItemHandler) Create

func (h *ItemHandler) Create(c echo.Context) error

Create is http handler to create a item process.

func (*ItemHandler) Delete

func (h *ItemHandler) Delete(c echo.Context) error

Delete is http handler to delete a item process.

func (*ItemHandler) Move

func (h *ItemHandler) Move(c echo.Context) error

Move is http handler to move a item process.

func (*ItemHandler) Update

func (h *ItemHandler) Update(c echo.Context) error

Update is http handler to update a item process.

type List

type List struct {
	ID      string `json:"id"`
	BoardID string `json:"board_id"`
	Title   string `json:"title"`
	Items   []Item `json:"items"`
	Before  string `json:"before"`
	After   string `json:"after"`
}

List includes request data for List.

type ListHandler

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

ListHandler includes a interactor for List usecase.

func NewListHandler

func NewListHandler(l usecase.ListUsecase) ListHandler

NewListHandler returns a new ListHandler.

func (*ListHandler) Create

func (h *ListHandler) Create(c echo.Context) error

Create is http handler to create a list process.

func (*ListHandler) Delete

func (h *ListHandler) Delete(c echo.Context) error

Delete is http handler to delete a list process.

func (*ListHandler) Move

func (h *ListHandler) Move(c echo.Context) error

Move is http handler to move a list process.

func (*ListHandler) Update

func (h *ListHandler) Update(c echo.Context) error

Update is http handler to update a list process.

type ResourceHandler

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

ResourceHandler includes a interactor for Resources usecase.

func NewResourceHandler

func NewResourceHandler(r usecase.ResourceUsecase) ResourceHandler

NewResourceHandler returns a new ResourceHandler.

func (*ResourceHandler) Get

func (h *ResourceHandler) Get(c echo.Context) error

Get is http handler to get resources process.

type Resources

type Resources struct {
	Colors []string `json:"colors"`
	Tags   []Tag    `json:"tags"`
}

Resources includes response data for Resources.

type Tag

type Tag struct {
	ID    string `json:"id"`
	Name  string `json:"title"`
	Color string `json:"color"`
}

Tag includes response data for Tag.

type User

type User struct {
	Name     string `json:"name"`
	Password string `json:"password"`
}

User includes request data for authentication.

type UserHandler

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

UserHandler includes a interactor for user usecase.

func NewUserHandler

func NewUserHandler(u usecase.UserUsecase) UserHandler

NewUserHandler returns a new UserHandler.

func (*UserHandler) SignIn

func (h *UserHandler) SignIn(c echo.Context) error

SignIn is http handler to sign in process.

func (*UserHandler) SignOut

func (h *UserHandler) SignOut(c echo.Context) error

SignOut is http handler to sign out process.

func (*UserHandler) SignUp

func (h *UserHandler) SignUp(c echo.Context) error

SignUp is http handler to signup process.

Jump to

Keyboard shortcuts

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