gin

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorLicenseMissing             = "未填写许可证"
	ErrorCodeLicenseMissing         = 1000
	ErrorLicenseInvalidVersion      = "许可证版本不匹配"
	ErrorCodeLicenseInvalidVersion  = 1002
	ErrorLicenseExpired             = "许可证已过期"
	ErrorCodeLicenseExpired         = 1001
	ErrorLicenseInvalidSystemID     = "许可证系统不匹配"
	ErrorCodeLicenseInvalidSystemID = 1003
	ErrorUnknown                    = "未知错误"
	ErrorCodeUnknown                = 1010
)
View Source
const (
	ZadigXLicenseStatusUninitialized   = "uninitialized"
	ZadigXLicenseStatusNormal          = "normal"
	ZadigXLicenseStatusExpired         = "expired"
	ZadigXLicenseStatusVersionMismatch = "version_mismatch"
	ZadigXLicenseStatusInvalidSystem   = "invalid_system"
)

Variables

This section is empty.

Functions

func GetCollaborationNew added in v1.9.9

func GetCollaborationNew() gin.HandlerFunc

func OperationLogStatus added in v1.9.9

func OperationLogStatus() gin.HandlerFunc

OperationLogStatus update status of operation if necessary

func ProcessLicense added in v1.9.9

func ProcessLicense() gin.HandlerFunc

func RegisterRequest added in v1.9.9

func RegisterRequest() gin.HandlerFunc

func RequestID

func RequestID() gin.HandlerFunc

RequestID adds a unique request id to the context

func RequestLog

func RequestLog(logger *zap.Logger) gin.HandlerFunc

func Response added in v1.4.0

func Response() gin.HandlerFunc

Response handle response

func UpdateOperationLogStatus added in v1.2.0

func UpdateOperationLogStatus(c *gin.Context)

更新操作日志状态

Types

This section is empty.

Jump to

Keyboard shortcuts

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