Documentation ¶
Index ¶
Constants ¶
View Source
const TriggerID = "xmpp"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Jid string `yaml:"jid" doc:"JID бота."` Password string `yaml:"password" doc:"Пароль."` Users map[string]string `yaml:"users" doc:"Маппинг JID в имя пользователя."` Presence time.Duration `yaml:"presence,omitempty" doc:"Интервал для отправки присутствия." default:"1m"` State time.Duration `yaml:"state,omitempty" doc:"Интервал для отправки состояния (\"печатает\")." default:"5s"` }
type Trigger ¶
type Trigger struct {
// contains filtered or unexported fields
}
func NewTrigger ¶
func NewTrigger(params TriggerParams) (*Trigger, error)
type TriggerParams ¶
Click to show internal directories.
Click to hide internal directories.