Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bridge ¶
type Bridge struct {
// contains filtered or unexported fields
}
Bridge encapsulates all the long-term state of the bridge.
type Config ¶
type Config struct { Mattermost MattermostConfig `yaml:"mattermost"` PrettierOptions map[string]interface{} `yaml:"prettier"` // Mappings represents the list of Mattermost channel to Zephyr triplet pairings. // If multiple mappings match a Zephyrgram, the first one will be used. Mappings []Mapping `yaml:"mappings"` }
Config represents the configuration for the Mattermost-Zephyr bridge.
type Mapping ¶
type Mapping struct { Channel string `yaml:"channel"` Class string `yaml:"class"` Instance string `yaml:"instance"` // The diversion map maps Zephyr usernames to alternative Mattermost channels. // This is useful, for example, to redirect high-spew automated messages to // another channel so that the main channel is usable. Diversions map[string]string `yaml:"diversions"` }
Mapping objects represent a single pairing of Mattermost channel and Zephyr triplet.
type MattermostConfig ¶
type MattermostConfig struct {
URL string `yaml:"url"`
}
MattermostConfig represents the configuration for connecting to Mattermost.
Click to show internal directories.
Click to hide internal directories.