Documentation ¶
Index ¶
- func GetBooleanValueWithDefault(ctx echo.Context, key string, defaultValue bool) bool
- func GetIntValueFromAnywhere(ctx echo.Context, key string) int
- func GetIntValueWithDefault(ctx echo.Context, key string, defaultValue int) int
- func GetMapValueFromBody(ctx echo.Context) (map[string]interface{}, error)
- func GetParamIntValue(ctx echo.Context, key string) int
- func GetRouterPath(matches []string, method reflect.Method) string
- func GetValue(ctx echo.Context, key string) string
- func GetValueFromAnywhere(ctx echo.Context, key string) string
- func GetValueWithDefault(ctx echo.Context, key, defaultValue string) string
- func HandlerExtraRouterFunc(controller interface{}, method reflect.Method) echo.HandlerFunc
- func HandlerFunc(controller interface{}, method reflect.Method) echo.HandlerFunc
- type Application
- type DataResponse
- type EmptyResponse
- type ExtraRouter
- type PageRespMessage
- type RegisterRouter
- type RespMessage
- type Result
- type RouterItem
- type TextResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetIntValueFromAnywhere ¶
func GetIntValueWithDefault ¶
func GetMapValueFromBody ¶
func GetParamIntValue ¶
func GetValueFromAnywhere ¶
func GetValueWithDefault ¶
func HandlerExtraRouterFunc ¶
func HandlerFunc ¶
Types ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
func New ¶
func New(r *echo.Group) *Application
func (*Application) Handle ¶
func (app *Application) Handle(controller interface{})
func (*Application) Prefix ¶
func (app *Application) Prefix(prefix string) *Application
Just For Log Route
type DataResponse ¶
type DataResponse struct { Code int `json:"code"` Data interface{} `json:"data"` }
type EmptyResponse ¶
type EmptyResponse struct {
Code int `json:"code"`
}
type ExtraRouter ¶
type ExtraRouter interface { AddRouter(method, path, methodName string) GetItems() []RouterItem }
func NewExtraRouter ¶
func NewExtraRouter() ExtraRouter
type PageRespMessage ¶
type RegisterRouter ¶
type RegisterRouter interface {
RegisterRouter(routers ExtraRouter)
}
type RespMessage ¶
type RouterItem ¶
type RouterItem struct {
// contains filtered or unexported fields
}
type TextResponse ¶
Click to show internal directories.
Click to hide internal directories.