Documentation
¶
Index ¶
- func GetLogger() *slog.Logger
- func InitWebhooks(ctx context.Context, config configuration.Config, ...)
- type DisconnectWebhookMsg
- type EmptyResponse
- type ErrorResponse
- type ErrorResponseResult
- type LoggerMiddleWare
- type LoginWebhookMsg
- type OkResponse
- type OnlineWebhookMsg
- type PublishWebhookMsg
- type RedirectModifiers
- type RedirectResponse
- type SubscribeWebhookMsg
- type SubscribeWebhookResult
- type UnsubResponse
- type UnsubscribeWebhookMsg
- type WebhookmsgTopic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitWebhooks ¶
func InitWebhooks(ctx context.Context, config configuration.Config, connector *platform_connector_lib.Connector, connectionLog connectionlog.ConnectionLog)
InitWebhooks doc @title Mqtt-Connector-Webhooks @description webhooks for vernemqtt; all responses are with code=200, differences in swagger doc are because of technical incompatibilities of the documentation format @version 0.1 @license.name Apache 2.0 @license.url http://www.apache.org/licenses/LICENSE-2.0.html @BasePath /
Types ¶
type DisconnectWebhookMsg ¶
type DisconnectWebhookMsg struct {
ClientId string `json:"client_id"`
}
type EmptyResponse ¶ added in v0.0.32
type EmptyResponse struct{}
type ErrorResponse ¶ added in v0.0.32
type ErrorResponse struct {
Result ErrorResponseResult `json:"result"`
}
type ErrorResponseResult ¶ added in v0.0.32
type ErrorResponseResult struct {
Error string `json:"error"`
}
type LoggerMiddleWare ¶
type LoggerMiddleWare struct {
// contains filtered or unexported fields
}
func Logger ¶
func Logger(handler http.Handler) *LoggerMiddleWare
func (*LoggerMiddleWare) ServeHTTP ¶
func (this *LoggerMiddleWare) ServeHTTP(w http.ResponseWriter, r *http.Request)
type LoginWebhookMsg ¶
type OkResponse ¶ added in v0.0.32
type OkResponse struct {
Result string `json:"result" example:"ok" default:"ok"`
}
type OnlineWebhookMsg ¶
type OnlineWebhookMsg struct {
ClientId string `json:"client_id"`
}
type PublishWebhookMsg ¶
type RedirectModifiers ¶ added in v0.0.32
type RedirectResponse ¶ added in v0.0.32
type RedirectResponse struct {
Result string `json:"result" example:"ok" default:"ok"`
Modifiers RedirectModifiers `json:"modifiers"`
}
type SubscribeWebhookMsg ¶
type SubscribeWebhookMsg struct {
Username string `json:"username"`
ClientId string `json:"client_id"`
Topics []WebhookmsgTopic `json:"topics"`
}
type SubscribeWebhookResult ¶
type SubscribeWebhookResult struct {
Result string `json:"result"`
Topics []WebhookmsgTopic `json:"topics"`
}
type UnsubResponse ¶ added in v0.0.32
type UnsubscribeWebhookMsg ¶
type WebhookmsgTopic ¶
Click to show internal directories.
Click to hide internal directories.