api

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: GPL-2.0 Imports: 22 Imported by: 0

Documentation

Overview

HTTP API v1.0 ----------------------- 约定参数名称:

	api       : 接口名称
 api_key  : 接口用户
 sign      : 签名
 sign_type : 签名类型
 app       : 应用编码

-----------------------

Index

Constants

This section is empty.

Variables

View Source
var (
	RequireVersion = "1.0.0"
	ApiUser        = "go2o"
	ApiSecret      = "123456"
)

Functions

func ServeApiV2

func ServeApiV2(store storage.Interface, prefix string, debug bool, requireVer string,
	apiUser string, apiSecret string) http.Handler

接口2.0

Types

type AccessTokenApi

type AccessTokenApi struct {
}

func (AccessTokenApi) Group

func (a AccessTokenApi) Group() string

func (AccessTokenApi) Process

func (a AccessTokenApi) Process(fn string, ctx api.Context) *api.Response

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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