httpAPI

package
v0.0.0-...-a91c245 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2019 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleActivateKey

func HandleActivateKey(_context *gin.Context)

func HandleCreateApp

func HandleCreateApp(_context *gin.Context)

func HandleFetchLicense

func HandleFetchLicense(_context *gin.Context)

func HandleGenerateKey

func HandleGenerateKey(_context *gin.Context)

func HandleListApp

func HandleListApp(_context *gin.Context)

func HandleListKey

func HandleListKey(_context *gin.Context)

func HandleModifyAppProfile

func HandleModifyAppProfile(_context *gin.Context)

func HandleModifyAppSecurity

func HandleModifyAppSecurity(_context *gin.Context)

func HandleModifyKeyProfile

func HandleModifyKeyProfile(_context *gin.Context)

func HandleModifyKeyStatus

func HandleModifyKeyStatus(_context *gin.Context)

func HandleQueryApp

func HandleQueryApp(_context *gin.Context)

func HandleQueryKey

func HandleQueryKey(_context *gin.Context)

func HandleVerifyLicense

func HandleVerifyLicense(_context *gin.Context)

Types

type ActivateKeyRequest

type ActivateKeyRequest struct {
	Number string `json:"number" binding:"required"`
	Code   string `json:"code" binding:"required"`
}

type CreateAppRequest

type CreateAppRequest struct {
	AppName string `json:"appname" binding:"required"`
}

type FetchLicenseRequest

type FetchLicenseRequest struct {
	AppName string `json:"appname" binding:"required"`
	Code    string `json:"code" binding:"required"`
}

type GenerateKeyRequest

type GenerateKeyRequest struct {
	AppKey    string `json:"appkey" binding:"required"`
	AppSecret string `json:"appsecret" binding:"required"`
	Count     int    `json:"count"`
	Capacity  int    `json:"capacity"`
	Expiry    int    `json:"expiry"`
	Storage   string `json:"storage"`
	Profile   string `json:"profile"`
}

type ListAppRequest

type ListAppRequest struct {
}

type ListKeyRequest

type ListKeyRequest struct {
	AppKey    string `json:"appkey" binding:"required"`
	AppSecret string `json:"appsecret" binding:"required"`
}

type ModifyAppProfileRequest

type ModifyAppProfileRequest struct {
	AppName string `json:"appname" binding:"required"`
	Profile string `json:"profile"`
}

type ModifyAppSecurityRequest

type ModifyAppSecurityRequest struct {
	AppName    string `json:"appname" binding:"required"`
	AppKey     string `json:"appkey" binding:"required"`
	AppSecret  string `json:"appsecret" binding:"required"`
	PrivateKey string `json:"privatekey" binding:"required"`
	PublicKey  string `json:"publickey" binding:"required"`
}

type ModifyKeyProfileRequest

type ModifyKeyProfileRequest struct {
	Number  string `json:"number" binding:"required"`
	Profile string `json:"profile"`
}

type ModifyKeyStatusRequest

type ModifyKeyStatusRequest struct {
	Number string `json:"number" binding:"required"`
	Status int    `json:"status"`
}

type QueryAppRequest

type QueryAppRequest struct {
	AppName string `json:"appname" binding:"required"`
}

type QueryKeyRequest

type QueryKeyRequest struct {
	Number string `json:"number" binding:"required"`
}

type VerifyLicenseRequest

type VerifyLicenseRequest struct {
	UID  string `json:"uid" binding:"required"`
	Code string `json:"code" binding:"required"`
}

Jump to

Keyboard shortcuts

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