Documentation ¶
Index ¶
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)
Types ¶
type DisconnectWebhookMsg ¶
type DisconnectWebhookMsg struct {
ClientId string `json:"client_id"`
}
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 OnlineWebhookMsg ¶
type OnlineWebhookMsg struct {
ClientId string `json:"client_id"`
}
type PublishWebhookMsg ¶
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 UnsubscribeWebhookMsg ¶
type WebhookmsgTopic ¶
Click to show internal directories.
Click to hide internal directories.