gin_plugin

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApiHandler

func ApiHandler(apiInfo *web.ApiInfo, funcType reflect.Method, funcValue reflect.Value)

func PathVariableParser

func PathVariableParser(url string) string

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{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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