sample

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package sample ...

Package sample ... generated version: unknown

Package sample ...

Package sample ... generated version: unknown

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bootstrap

func Bootstrap(p *props.ControllerProps, e *echo.Echo, middlewareList MiddlewareList)

Bootstrap ...

Types

type CreatedType

type CreatedType int

CreatedType ...

const (
	CreatedTypeOwner CreatedType = iota
	CreatedTypeMember
	CreatedTypeGuest
)

CreatedType Values

type IPostCreateTableController

type IPostCreateTableController interface {
	PostCreateTable(c echo.Context, req *PostCreateTableRequest) (res *PostCreateTableResponse, err error)
}

IPostCreateTableController ...

type IPostCreateUserController

type IPostCreateUserController interface {
	PostCreateUser(c echo.Context, req *PostCreateUserRequest) (res *PostCreateUserResponse, err error)
}

IPostCreateUserController ...

type MiddlewareList

type MiddlewareList []*MiddlewareSet

MiddlewareList ...

func (MiddlewareList) ToMap

func (m MiddlewareList) ToMap() MiddlewareMap

ToMap ...

type MiddlewareMap

type MiddlewareMap map[string][]echo.MiddlewareFunc

MiddlewareMap ...

type MiddlewareSet

type MiddlewareSet struct {
	Path           string
	MiddlewareFunc []echo.MiddlewareFunc
}

MiddlewareSet ...

type PostCreateTableController

type PostCreateTableController struct {
	*props.ControllerProps
}

PostCreateTableController ...

func NewPostCreateTableController

func NewPostCreateTableController(props *props.ControllerProps) *PostCreateTableController

NewPostCreateTableController ...

func (*PostCreateTableController) PostCreateTable

func (p *PostCreateTableController) PostCreateTable(
	c echo.Context, req *PostCreateTableRequest,
) (res *PostCreateTableResponse, err error)

PostCreateTable ... @Summary WIP @Description WIP @Accept json @Produce json @Param ID body string WIP:${isRequire} WIP:${description} @Param Text body string WIP:${isRequire} WIP:${description} @Success 200 {object} PostCreateTableResponse @Failure 400 {object} WIP @Router /create_table [POST]

type PostCreateTableRequest

type PostCreateTableRequest struct {
	ID   string
	Text string
}

PostCreateTableRequest ...

type PostCreateTableResponse

type PostCreateTableResponse struct {
	ID      string
	Payload table.Table
}

PostCreateTableResponse ...

type PostCreateUserController

type PostCreateUserController struct {
	*props.ControllerProps
}

PostCreateUserController ...

func NewPostCreateUserController

func NewPostCreateUserController(props *props.ControllerProps) *PostCreateUserController

NewPostCreateUserController ...

func (*PostCreateUserController) PostCreateUser

func (p *PostCreateUserController) PostCreateUser(
	c echo.Context, req *PostCreateUserRequest,
) (res *PostCreateUserResponse, err error)

PostCreateUser ... @Summary WIP @Description WIP @Accept json @Produce json @Param ID body string WIP:${isRequire} WIP:${description} @Param Password body string WIP:${isRequire} WIP:${description} @Param Gender body integer WIP:${isRequire} WIP:${description} @Success 200 {object} PostCreateUserResponse @Failure 400 {object} WIP @Router /create_user [POST]

type PostCreateUserRequest

type PostCreateUserRequest struct {
	ID       string `param:"id"`
	Password string
	Gender   int
}

PostCreateUserRequest Description ep="create_user/:id"

type PostCreateUserResponse

type PostCreateUserResponse struct {
	Status      bool
	Message     string
	CreatedType CreatedType
}

PostCreateUserResponse ...

type Routes

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

Routes ...

func NewRoutes

func NewRoutes(p *props.ControllerProps, router *echo.Group) *Routes

NewRoutes ...

func (*Routes) PostCreateTable

func (r *Routes) PostCreateTable(p *props.ControllerProps) echo.HandlerFunc

PostCreateTable ...

func (*Routes) PostCreateUser

func (r *Routes) PostCreateUser(p *props.ControllerProps) echo.HandlerFunc

PostCreateUser ...

Directories

Path Synopsis
Package props is a scaffold file for props of controllers
Package props is a scaffold file for props of controllers
Package service ...
Package service ...
static_page
Package static ...
Package static ...
table
Package table ...
Package table ...
user
Package user ...
Package user ...
user2
Package user2 ...
Package user2 ...
user2/_userID
generated version: unknown
generated version: unknown
user2/_userID/_JobID
generated version: unknown
generated version: unknown

Jump to

Keyboard shortcuts

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