api

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2019 License: Unlicense Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_TIME_SPAN = 5 //最大时间差:5分钟

Variables

This section is empty.

Functions

func FindAPIAccount

func FindAPIAccount(appid string) *apiAccount

func NewAPIAccount

func NewAPIAccount(lifespanDays int) *apiAccount

Types

type ApiAccount

type ApiAccount struct {
	AppID      string
	AppKey     string
	CreateTime int
	Lifespan   int // days

}

func (*ApiAccount) Check

func (a *ApiAccount) Check(appid, appt, appr, apivc string) error

Jump to

Keyboard shortcuts

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