gin

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func GetCollaborationNew() gin.HandlerFunc

func OperationLogStatus

func OperationLogStatus() gin.HandlerFunc

OperationLogStatus update status of operation if necessary

func ProcessLicense

func ProcessLicense() gin.HandlerFunc

TODO: the way we process the license need to be changed after

func RegisterRequest

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

func Response() gin.HandlerFunc

Response handle response

func UpdateOperationLogStatus

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