param

package
v0.0.0-...-defef51 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const ParamsFuncApiKey = "ApiKey"
View Source
const ParamsFuncHTTPBasic = "HTTPBasic"
View Source
const ParamsFuncHTTPBearer = "HTTPBearer"
View Source
const ParamsFuncRouter = "Router"
View Source
const ParamsTypeBodyJson = "application/json"
View Source
const ParamsTypeBodyXml = "application/xml"
View Source
const ParamsTypeCookie = "cookie"
View Source
const ParamsTypeFormData = "multipart/form-data"
View Source
const ParamsTypeFormUrlencoded = "application/x-www-form-urlencoded"
View Source
const ParamsTypeHeader = "header"
View Source
const ParamsTypePath = "path"
View Source
const ParamsTypeQuery = "query"

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiKeyInterface

type ApiKeyInterface interface {
	ApiKey()
}

type BodyJson

type BodyJson struct {
}

func (*BodyJson) SetValue

func (b *BodyJson) SetValue(ctx *gin.Context, value reflect.Value)

type BodyXml

type BodyXml struct {
}

func (*BodyXml) SetValue

func (b *BodyXml) SetValue(ctx *gin.Context, value reflect.Value)
type Cookie struct {
}

func (*Cookie) SetValue

func (c *Cookie) SetValue(ctx *gin.Context, value reflect.Value)

type File

type File struct {
	*multipart.FileHeader
}

type FormData

type FormData struct {
}

func (*FormData) SetValue

func (f *FormData) SetValue(ctx *gin.Context, value reflect.Value)

type FormUrlencoded

type FormUrlencoded struct {
}

func (*FormUrlencoded) SetValue

func (f *FormUrlencoded) SetValue(ctx *gin.Context, value reflect.Value)

type HTTPBasicInterface

type HTTPBasicInterface interface {
	HTTPBasic(username, password string)
}

type HTTPBearerInterface

type HTTPBearerInterface interface {
	HTTPBearer(token string)
}
type Header struct {
}

func (*Header) SetValue

func (h *Header) SetValue(ctx *gin.Context, value reflect.Value)

type ParamsType

type ParamsType interface {
	SetValue(ctx *gin.Context, value reflect.Value)
}

type Path

type Path struct {
}

func (*Path) SetValue

func (p *Path) SetValue(ctx *gin.Context, value reflect.Value)

type Query

type Query struct {
}

func (*Query) SetValue

func (q *Query) SetValue(ctx *gin.Context, value reflect.Value)

type Router

type Router struct {
	Summary     string
	Description string
	Tags        []string
	Methods     []string
	Path        string
}

type RouterInterface

type RouterInterface interface {
	Router() Router
}

Jump to

Keyboard shortcuts

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