api

package
v0.0.0-...-dafe533 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: Apache-2.0 Imports: 21 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 GetLocalIps

func GetLocalIps() string

获取本机ip

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)

func SecPointGet

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

func SecPointPost

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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