openapi

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package openapi openApi管理

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearQuota

func ClearQuota(clt *core.Client, appID string) error

ClearQuota 重置API调用次数

func ClearQuotaV2

func ClearQuotaV2(clt *core.Client, appID string, secret string) error

ClearQuotaV2 使用AppSecret重置API调用次数

Types

type Quota

type Quota struct {
	// DailyLimit 当天该账号可调用该接口的次数
	DailyLimit int64 `json:"daily_limit,omitempty"`
	// Used 当天已经调用的次数
	Used int64 `json:"used,omitempty"`
	// Remain 当天剩余调用次数
	Remain int64 `json:"remain,omitempty"`
}

func QuotaGet

func QuotaGet(clt *core.Client, cgiPath string) (quota *Quota, err error)

QuotaGet 查询API调用额度

Jump to

Keyboard shortcuts

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