Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notifier ¶
type Notifier struct {
// contains filtered or unexported fields
}
func NewNotifier ¶
func NewNotifier(config *NotifierConfig) (*Notifier, error)
type NotifierConfig ¶
type NotifierConfig struct {
// Homeserver URL (Element web URL or Matrix homeserver base URL).
// URL homeserver (адрес Element или базовый URL Matrix).
ServerUrl string `json:"serverUrl"`
// User ID (MXID), e.g. @bot:example.org.
// Идентификатор пользователя (MXID), например @bot:example.org.
UserId string `json:"userId"`
// Access token from the homeserver (bot or user).
// Access token с homeserver (бот или пользователь).
AccessToken string `json:"accessToken"`
// Room ID (!room:server) for notifications.
// ID комнаты (!room:server) для уведомлений.
RoomId string `json:"roomId"`
}
Click to show internal directories.
Click to hide internal directories.