Documentation ¶
Index ¶
- func ApiHandler(apiInfo *web.ApiInfo, funcType reflect.Method, funcValue reflect.Value)
- func PathVariableParser(url string) string
- func StaticHandler(url, dir string)
- type GinMapperAdapter
- func (e *GinMapperAdapter) Get(param web.Param) interface{}
- func (e *GinMapperAdapter) GetBoolFromForm(param web.Param) bool
- func (e *GinMapperAdapter) GetBoolFromPath(param web.Param) bool
- func (e *GinMapperAdapter) GetBoolFromQuery(param web.Param) bool
- func (e *GinMapperAdapter) GetFloatFromForm(param web.Param) float64
- func (e *GinMapperAdapter) GetFloatFromPath(param web.Param) float64
- func (e *GinMapperAdapter) GetFloatFromQuery(param web.Param) float64
- func (e *GinMapperAdapter) GetIntFromForm(param web.Param) int
- func (e *GinMapperAdapter) GetIntFromPath(param web.Param) int
- func (e *GinMapperAdapter) GetIntFromQuery(param web.Param) int
- func (e *GinMapperAdapter) GetMapFromBody(param web.Param) interface{}
- func (e *GinMapperAdapter) GetMapFromForm() map[string][]string
- func (e *GinMapperAdapter) GetMultipartFile(param web.Param) multipart.File
- func (e *GinMapperAdapter) GetMultipartHeader(param web.Param) *multipart.FileHeader
- func (e *GinMapperAdapter) GetRequest() *http.Request
- func (e *GinMapperAdapter) GetResponseWriter() http.ResponseWriter
- func (e *GinMapperAdapter) GetStream() []byte
- func (e *GinMapperAdapter) GetStringFromForm(param web.Param) string
- func (e *GinMapperAdapter) GetStringFromHeader(param web.Param) string
- func (e *GinMapperAdapter) GetStringFromMultipart(param web.Param) string
- func (e *GinMapperAdapter) GetStringFromPath(param web.Param) string
- func (e *GinMapperAdapter) GetStringFromQuery(param web.Param) string
- func (e *GinMapperAdapter) GetStructFromBody(param web.Param) interface{}
- func (e *GinMapperAdapter) GetStructFromQuery(param web.Param) interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApiHandler ¶
func PathVariableParser ¶
func StaticHandler ¶
func StaticHandler(url, dir string)
Types ¶
type GinMapperAdapter ¶
type GinMapperAdapter struct {
// contains filtered or unexported fields
}
func NewGinMapperAdapter ¶
func NewGinMapperAdapter(c *gin.Context) *GinMapperAdapter
func (*GinMapperAdapter) Get ¶
func (e *GinMapperAdapter) Get(param web.Param) interface{}
func (*GinMapperAdapter) GetBoolFromForm ¶
func (e *GinMapperAdapter) GetBoolFromForm(param web.Param) bool
func (*GinMapperAdapter) GetBoolFromPath ¶
func (e *GinMapperAdapter) GetBoolFromPath(param web.Param) bool
func (*GinMapperAdapter) GetBoolFromQuery ¶
func (e *GinMapperAdapter) GetBoolFromQuery(param web.Param) bool
func (*GinMapperAdapter) GetFloatFromForm ¶
func (e *GinMapperAdapter) GetFloatFromForm(param web.Param) float64
func (*GinMapperAdapter) GetFloatFromPath ¶
func (e *GinMapperAdapter) GetFloatFromPath(param web.Param) float64
func (*GinMapperAdapter) GetFloatFromQuery ¶
func (e *GinMapperAdapter) GetFloatFromQuery(param web.Param) float64
func (*GinMapperAdapter) GetIntFromForm ¶
func (e *GinMapperAdapter) GetIntFromForm(param web.Param) int
func (*GinMapperAdapter) GetIntFromPath ¶
func (e *GinMapperAdapter) GetIntFromPath(param web.Param) int
func (*GinMapperAdapter) GetIntFromQuery ¶
func (e *GinMapperAdapter) GetIntFromQuery(param web.Param) int
func (*GinMapperAdapter) GetMapFromBody ¶
func (e *GinMapperAdapter) GetMapFromBody(param web.Param) interface{}
func (*GinMapperAdapter) GetMapFromForm ¶
func (e *GinMapperAdapter) GetMapFromForm() map[string][]string
func (*GinMapperAdapter) GetMultipartFile ¶
func (e *GinMapperAdapter) GetMultipartFile(param web.Param) multipart.File
func (*GinMapperAdapter) GetMultipartHeader ¶
func (e *GinMapperAdapter) GetMultipartHeader(param web.Param) *multipart.FileHeader
func (*GinMapperAdapter) GetRequest ¶
func (e *GinMapperAdapter) GetRequest() *http.Request
func (*GinMapperAdapter) GetResponseWriter ¶
func (e *GinMapperAdapter) GetResponseWriter() http.ResponseWriter
func (*GinMapperAdapter) GetStream ¶
func (e *GinMapperAdapter) GetStream() []byte
func (*GinMapperAdapter) GetStringFromForm ¶
func (e *GinMapperAdapter) GetStringFromForm(param web.Param) string
func (*GinMapperAdapter) GetStringFromHeader ¶
func (e *GinMapperAdapter) GetStringFromHeader(param web.Param) string
func (*GinMapperAdapter) GetStringFromMultipart ¶
func (e *GinMapperAdapter) GetStringFromMultipart(param web.Param) string
func (*GinMapperAdapter) GetStringFromPath ¶
func (e *GinMapperAdapter) GetStringFromPath(param web.Param) string
func (*GinMapperAdapter) GetStringFromQuery ¶
func (e *GinMapperAdapter) GetStringFromQuery(param web.Param) string
func (*GinMapperAdapter) GetStructFromBody ¶
func (e *GinMapperAdapter) GetStructFromBody(param web.Param) interface{}
func (*GinMapperAdapter) GetStructFromQuery ¶
func (e *GinMapperAdapter) GetStructFromQuery(param web.Param) interface{}
Click to show internal directories.
Click to hide internal directories.