ingot

package
v0.0.0-...-85aee89 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuthentication

func GetAuthentication(c *gin.Context) core.Authentication

GetAuthentication 获取身份验证信息

func SetAuthentication

func SetAuthentication(c *gin.Context, auth core.Authentication)

SetAuthentication 设置当前身份验证信息

Types

type Context

type Context struct {
	*gin.Context
}

Context 自定义 context

func NewContext

func NewContext(gin *gin.Context) *Context

NewContext 实例化

func (*Context) GetAuthentication

func (c *Context) GetAuthentication() core.Authentication

GetAuthentication 获取身份验证信息

func (*Context) SetAuthentication

func (c *Context) SetAuthentication(auth core.Authentication)

SetAuthentication 设置当前身份验证信息

Jump to

Keyboard shortcuts

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