Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Telegram ConfigTelegram `json:"telegram" validate:"omitempty"` Vkteams ConfigVkteams `json:"vkteams" validate:"omitempty"` }
type ConfigTelegram ¶
type ConfigVkteams ¶
type ConfigVkteams struct { Enabled bool `json:"enabled" default:"false"` Token string `json:"token" validate:"required_if=Enabled true"` ChatId string `json:"chat_id" validate:"required_if=Enabled true"` Text string `json:"text" validate:"required_if=Enabled true"` Api string `json:"api" validate:"required_if=Enabled true"` }
type TemplateData ¶
type WebhookConnectors ¶
type WebhookConnectors struct {
// contains filtered or unexported fields
}
var Webhook WebhookConnectors = WebhookConnectors{}
Объект для хранения и обработки перенаправления сообщений в разные коннекторы
func (WebhookConnectors) Send ¶
func (w WebhookConnectors) Send(data *TemplateData)
Отправка сообщения во все коннекторы
Click to show internal directories.
Click to hide internal directories.