Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandConfig ¶
type CommandConfig struct {
Command string `yaml:"command"`
Token string `yaml:"token"`
DialogURL string `yaml:"dialog_url"`
DialogResponseURL string `yaml:"dialog_response_url"`
SchedulerResponseURL string `yaml:"scheduler_response_url"`
Plugins []CommandPlugin `yaml:"plugins"`
AccessControl model.AccessControl `yaml:"access_control"`
}
type CommandPlugin ¶
func (*CommandPlugin) UnmarshalYAML ¶
func (cp *CommandPlugin) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML implements the Unmarshaler interface. The CommandPlugin can either be a string corresponding to the name, or a CommandPlugin
type Config ¶
type Config struct {
Listen string `yaml:"listen"`
BaseURL string `yaml:"base_url"`
PluginsConfig []PluginConfig `yaml:"plugins"`
CommandConfigurations []CommandConfig `yaml:"commands"`
ScheduledCommands []ScheduledCommandConfig `yaml:"scheduler"`
}
type PluginConfig ¶
type PluginConfig struct {
Name string `yaml:"name"`
File string `yaml:"file"`
Config RawMessage `yaml:"config"`
}
type RawMessage ¶
type RawMessage struct {
// contains filtered or unexported fields
}
func (*RawMessage) Unmarshal ¶
func (msg *RawMessage) Unmarshal(v interface{}) error
func (*RawMessage) UnmarshalYAML ¶
func (msg *RawMessage) UnmarshalYAML(unmarshal func(interface{}) error) error
Click to show internal directories.
Click to hide internal directories.