api

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AgentRegister

func AgentRegister(req request.AgentRegisterReq) (AgentId int, err error)
	AgentRegister
 	Agent 启动时,向 Server 端注册的接口
	req: api.AgentRegisterReq

func GET

func GET(url string, body interface{}) *gorequest.SuperAgent

GET 统一的GET前置处理 url 请求api token 身份标识

func Limit

func Limit() map[string]string

func NewRequest

func NewRequest() *gorequest.SuperAgent

NewRequest 空白的请求工具 预留做后续的统一参数处理

func POST

func POST(url string, body interface{}) *gorequest.SuperAgent

POST 统一的POST前置处理 url 请求api token 身份标识

func Profiles

func Profiles(req request.HookRuleReq)

Profiles Engine 运行时,从 OpenAPI 服务获取Hook规则

func ReportUpload

func ReportUpload(req request.UploadReq)

Types

This section is empty.

Jump to

Keyboard shortcuts

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