Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
Broker *brokerMqtt.Broker
}
API representa a interface da API do servidor
func NewAPI ¶
func NewAPI(broker *brokerMqtt.Broker) *API
Init inicializa a API com as rotas e inicia o servidor
func (*API) MqttTreeHandler ¶
func (a *API) MqttTreeHandler(w http.ResponseWriter, r *http.Request)
func (*API) SessionInfo ¶
func (a *API) SessionInfo(w http.ResponseWriter, r *http.Request)
func (*API) TopicInfoHandler ¶
func (a *API) TopicInfoHandler(w http.ResponseWriter, r *http.Request)
type SessionInfo ¶
type SessionInfo struct {
NumberSessions int `json:"numberSessions"`
}
Click to show internal directories.
Click to hide internal directories.