apikey

package
v0.77.3 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateApiKey

func CreateApiKey(ctx *gin.Context)

func RegisterRouter

func RegisterRouter(r *gin.RouterGroup)

Types

type CreateApiKeyRequest

type CreateApiKeyRequest struct {
	Key         string   `form:"key" json:"key" binding:"required,min=10,max=100"`
	Quota       int      `form:"quota" json:"quota" binding:"required"`
	Permissions []string `form:"permissions" json:"permissions" binding:"required"`
	Description string   `form:"description" json:"description"`
}

Jump to

Keyboard shortcuts

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