package
Version:
v0.0.3-0...-fb11c36
Opens a new window with list of versions in this module.
Published: Jun 5, 2020
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
App represents the app's configuration
NewAppFromYaml returns the app data from provided yaml file
Validate validates an app config
type Bot struct {
Platform string `yaml:"platform"`
APIKey string `yaml:"api_key"`
}
Bot represents a bot config
type Message struct {
Messengers []Messenger `yaml:"messengers"`
Schedule string `yaml:"schedule"`
Body string `yaml:"body"`
ExpireTime string `yaml:"expiretime"`
DisableLinkPreview bool `yaml:"disable_link_preview"`
}
Message represents the configuration of a single Messaged message
type Messenger struct {
Bot string `yaml:"bot"`
ChatIDs []string `yaml:"chat_ids"`
}
Messenger represents a messenger of a message
Source Files
¶
Click to show internal directories.
Click to hide internal directories.