Documentation ¶
Index ¶
- func GetResourcesInHeader(c *gin.Context) ([]string, bool)
- func InsertDetailedOperationLog(c *gin.Context, ...)
- func InsertOperationLog(c *gin.Context, ...)
- func JSONResponse(c *gin.Context, ctx *Context)
- func Stream(c *gin.Context, p producer, log *zap.SugaredLogger)
- type Context
- type FederatedClaims
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetResourcesInHeader ¶ added in v1.7.1
func InsertDetailedOperationLog ¶ added in v1.9.9
func InsertOperationLog ¶
func InsertOperationLog(c *gin.Context, username, productName, method, function, detail, requestBody string, logger *zap.SugaredLogger)
InsertOperationLog 插入操作日志
func JSONResponse ¶
Types ¶
type Context ¶
type Context struct { Logger *zap.SugaredLogger Err error Resp interface{} Account string UserName string UserID string IdentityType string RequestID string }
Context struct
func NewContext ¶
TODO: We need to implement a `context.Context` that conforms to the golang standard library.
type FederatedClaims ¶ added in v1.9.9
Click to show internal directories.
Click to hide internal directories.