web

package
v1.0.55 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GinJWTokenAdapter

type GinJWTokenAdapter struct {
	JWTser jwt.Service //starter:inject("#")

	CookieMaxAge int  //starter:inject("${jwt.gin-adapter.cookie-max-age}")
	UseCookie    bool //starter:inject("${jwt.gin-adapter.use-cookie}")
	UseHeader    bool //starter:inject("${jwt.gin-adapter.use-header}")
	// contains filtered or unexported fields
}

GinJWTokenAdapter ...

func (*GinJWTokenAdapter) Accept

func (inst *GinJWTokenAdapter) Accept(c context.Context) bool

Accept ...

func (*GinJWTokenAdapter) GetDTO

func (inst *GinJWTokenAdapter) GetDTO(c context.Context) (*jwt.Token, error)

GetDTO ...

func (*GinJWTokenAdapter) GetText

func (inst *GinJWTokenAdapter) GetText(c context.Context) (jwt.Text, error)

GetText ...

func (*GinJWTokenAdapter) ListRegistrations

func (inst *GinJWTokenAdapter) ListRegistrations() []*jwt.Registration

ListRegistrations ...

func (*GinJWTokenAdapter) SetDTO

func (inst *GinJWTokenAdapter) SetDTO(c context.Context, o *jwt.Token) error

SetDTO ...

func (*GinJWTokenAdapter) SetText

func (inst *GinJWTokenAdapter) SetText(c context.Context, t jwt.Text) error

SetText ...

type JSONGinResponder

type JSONGinResponder struct {
	// contains filtered or unexported fields
}

JSONGinResponder 用来发送 JSON 形式的 HTTP 响应

func (*JSONGinResponder) Accept

func (inst *JSONGinResponder) Accept(resp *libgin.Response) bool

Accept ...

func (*JSONGinResponder) ListRegistrations

func (inst *JSONGinResponder) ListRegistrations() []*libgin.ResponderRegistration

ListRegistrations ...

func (*JSONGinResponder) Send

func (inst *JSONGinResponder) Send(resp *libgin.Response)

Send ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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