Documentation ¶
Index ¶
- type EMQXOpenApi
- func (api *EMQXOpenApi) ApiFullUrl(path string) string
- func (api *EMQXOpenApi) ApiUrlForAuthentication(authId string) string
- func (api *EMQXOpenApi) ApiUrlForRule() string
- func (api *EMQXOpenApi) DeleteAuthentication(id string) (int, error)
- func (api *EMQXOpenApi) PostAuthentication(data interface{}) (int, error)
- func (api *EMQXOpenApi) PostRule(data interface{}) error
- func (api *EMQXOpenApi) PutAuthentication(id string, data interface{}) (int, error)
- func (api *EMQXOpenApi) Version() string
- type OpenApiResp
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 ¶
Click to show internal directories.
Click to hide internal directories.