sample

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

THIS FILE IS A GENERATED CODE. DO NOT EDIT

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bootstrap

func Bootstrap(ctx context.Context, e *echo.Echo, middlewareList MiddlewareList)

Types

type CreatedType

type CreatedType int
const (
	CreatedTypeOwner CreatedType = iota
	CreatedTypeMember
	CreatedTypeGuest
)

type IPostCreateTableController

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

type IPostCreateUserController

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

type MiddlewareList

type MiddlewareList []*MiddlewareSet

func (MiddlewareList) ToMap

func (m MiddlewareList) ToMap() MiddlewareMap

type MiddlewareMap

type MiddlewareMap map[string][]echo.MiddlewareFunc

type MiddlewareSet

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

type PostCreateTableController

type PostCreateTableController struct {
}

func NewPostCreateTableController

func NewPostCreateTableController() *PostCreateTableController

func (*PostCreateTableController) PostCreateTable

func (p *PostCreateTableController) PostCreateTable(
	ctx context.Context, 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
}

type PostCreateTableResponse

type PostCreateTableResponse struct {
	ID      string
	Payload table.Table
}

type PostCreateUserController

type PostCreateUserController struct {
}

func NewPostCreateUserController

func NewPostCreateUserController() *PostCreateUserController

func (*PostCreateUserController) PostCreateUser

func (p *PostCreateUserController) PostCreateUser(
	ctx context.Context, 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
}

type Routes

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

func NewRoutes

func NewRoutes(ctx context.Context, router *echo.Group) *Routes

func (*Routes) PostCreateTable

func (r *Routes) PostCreateTable(ctx context.Context) echo.HandlerFunc

func (*Routes) PostCreateUser

func (r *Routes) PostCreateUser(ctx context.Context) echo.HandlerFunc

Directories

Path Synopsis
THIS FILE IS A GENERATED CODE.
THIS FILE IS A GENERATED CODE.
static_page
THIS FILE IS A GENERATED CODE.
THIS FILE IS A GENERATED CODE.
user
THIS FILE IS A GENERATED CODE.
THIS FILE IS A GENERATED CODE.
user2
THIS FILE IS A GENERATED CODE.
THIS FILE IS A GENERATED CODE.
user2/_userID
THIS FILE IS A GENERATED CODE.
THIS FILE IS A GENERATED CODE.
user2/_userID/_JobID
THIS FILE IS A GENERATED CODE.
THIS FILE IS A GENERATED CODE.

Jump to

Keyboard shortcuts

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