emqx

package
v0.0.0-...-f282eec Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EMQXOpenApi

type EMQXOpenApi struct {
	Uri       string //api请求地址,如: http://192.168.149.128:18083
	ApiKey    string //api请求key
	ApiSecret string //api请求secret
}

EMQXOpenApi 请求api 目前适用版本: https://docs.emqx.com/zh/emqx/v5.5/admin/api-docs.html

func (*EMQXOpenApi) ApiFullUrl

func (api *EMQXOpenApi) ApiFullUrl(path string) string

func (*EMQXOpenApi) ApiUrlForAuthentication

func (api *EMQXOpenApi) ApiUrlForAuthentication(authId string) string

ApiUrlForAuthentication 认证器操作url

func (*EMQXOpenApi) ApiUrlForRule

func (api *EMQXOpenApi) ApiUrlForRule() string

ApiUrlForRule 规则rule操作url

func (*EMQXOpenApi) DeleteAuthentication

func (api *EMQXOpenApi) DeleteAuthentication(id string) (int, error)

DeleteAuthentication 删除认证器,id=认证器id

func (*EMQXOpenApi) PostAuthentication

func (api *EMQXOpenApi) PostAuthentication(data interface{}) (int, error)

PostAuthentication 添加认证器,id=认证器id

func (*EMQXOpenApi) PostRule

func (api *EMQXOpenApi) PostRule(data interface{}) error

PostRule 添加规则

func (*EMQXOpenApi) PutAuthentication

func (api *EMQXOpenApi) PutAuthentication(id string, data interface{}) (int, error)

PutAuthentication 添加认证器,id=认证器id

func (*EMQXOpenApi) Version

func (api *EMQXOpenApi) Version() string

type OpenApiResp

type OpenApiResp struct {
	Code    string `json:"code"`
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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