Documentation
¶
Index ¶
- func GetLogger() *slog.Logger
- func InitWebhooks(config configuration.Config, connector *platform_connector_lib.Connector, ...) *http.Server
- type DisconnectCommand
- type DisconnectWebhookMsg
- type EmptyResponse
- type ErrorResponse
- type ErrorResponseResult
- type LoginWebhookMsg
- type OkResponse
- type OnlineWebhookMsg
- type PublishWebhookMsg
- type RedirectModifiers
- type RedirectResponse
- type SubscribeWebhookMsg
- type Subscription
- type SubscriptionResponse
- type SubscriptionWrapper
- type UnsubResponse
- type UnsubscribeWebhookMsg
- type WebhookmsgTopic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitWebhooks ¶
func InitWebhooks(config configuration.Config, connector *platform_connector_lib.Connector, connectionLogger connectionlog.Logger, handlers []handler.Handler, connectionLimit *connectionlimit.ConnectionLimitHandler) *http.Server
InitWebhooks doc @title Senergy-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 DisconnectCommand ¶ added in v0.0.50
type DisconnectCommand struct {
Username string `json:"username"`
}
type DisconnectWebhookMsg ¶
type DisconnectWebhookMsg struct {
ClientId string `json:"client_id"`
}
type EmptyResponse ¶ added in v0.0.53
type EmptyResponse struct{}
type ErrorResponse ¶ added in v0.0.53
type ErrorResponse struct {
Result ErrorResponseResult `json:"result"`
}
type ErrorResponseResult ¶ added in v0.0.53
type ErrorResponseResult struct {
Error string `json:"error"`
}
type LoginWebhookMsg ¶
type OkResponse ¶ added in v0.0.53
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.53
type RedirectResponse ¶ added in v0.0.53
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 Subscription ¶ added in v0.0.50
type SubscriptionResponse ¶ added in v0.0.53
type SubscriptionResponse struct { Result string `json:"result" example:"ok" default:"ok"` Topics []WebhookmsgTopic `json:"topics"` }
type SubscriptionWrapper ¶ added in v0.0.50
type SubscriptionWrapper struct {
Table []Subscription `json:"table"`
}
type UnsubResponse ¶ added in v0.0.53
type UnsubscribeWebhookMsg ¶
type WebhookmsgTopic ¶
Click to show internal directories.
Click to hide internal directories.