Versions in this module Expand all Collapse all v1 v1.10.1 Mar 16, 2021 v1.10.0 Mar 12, 2021 Changes in this version + func Bootstrap(p *props.ControllerProps, e *echo.Echo, middlewareList MiddlewareList, ...) + type CreatedType int + const CreatedTypeGuest + const CreatedTypeMember + const CreatedTypeOwner + type Flag int + type GetController struct + func NewGetController(cp *props.ControllerProps) *GetController + func (g *GetController) AutoBind() bool + func (g *GetController) Get(c echo.Context, req *GetRequest) (res *GetResponse, err error) + type GetRequest struct + Param string + type GetResponse struct + Data string + type IGetController interface + Get func(c echo.Context, req *GetRequest) (res *GetResponse, err error) + type IPostCreateTableController interface + PostCreateTable func(c echo.Context, req *PostCreateTableRequest) (res *PostCreateTableResponse, err error) + type IPostCreateUserController interface + PostCreateUser func(c echo.Context, req *PostCreateUserRequest) (res *PostCreateUserResponse, err error) + type MiddlewareList []*MiddlewareSet + func (m MiddlewareList) ToMap() MiddlewareMap + type MiddlewareMap map[string][]echo.MiddlewareFunc + type MiddlewareSet struct + MiddlewareFunc []echo.MiddlewareFunc + Path string + type PostCreateTableController struct + func NewPostCreateTableController(cp *props.ControllerProps) *PostCreateTableController + func (p *PostCreateTableController) AutoBind() bool + func (p *PostCreateTableController) PostCreateTable(c echo.Context, req *PostCreateTableRequest) (res *PostCreateTableResponse, err error) + type PostCreateTableRequest struct + Flag Flag + ID string + Map map[Flag]Flag + Text string + type PostCreateTableResponse struct + ID string + Payload table.Table + RequestTime time.Time + type PostCreateUserController struct + func NewPostCreateUserController(cp *props.ControllerProps) *PostCreateUserController + func (p *PostCreateUserController) AutoBind() bool + func (p *PostCreateUserController) PostCreateUser(c echo.Context, req *PostCreateUserRequest) (res *PostCreateUserResponse, err error) + type PostCreateUserRequest struct + Birthday time.Time + Gender int + ID string + Password string + Roles []*Role + type PostCreateUserResponse struct + CreatedType CreatedType + Message string + RequestedAt time.Time + Status bool + type Role struct + ID int + Name string + RecursionRoles []Role + type Routes struct + func NewRoutes(p *props.ControllerProps, router *echo.Group, opts ...io.Writer) *Routes + func (r *Routes) Get(p *props.ControllerProps) echo.HandlerFunc + func (r *Routes) PostCreateTable(p *props.ControllerProps) echo.HandlerFunc + func (r *Routes) PostCreateUser(p *props.ControllerProps) echo.HandlerFunc Other modules containing this package github.com/go-generalize/api_gen/v2