Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Scheme is the identifying part of this service's configuration URL Scheme = "rocketchat" // NotEnoughArguments provided in the service URL NotEnoughArguments = "the apiURL does not include enough arguments" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
standard.EnumlessConfig
UserName string `url:"user" optional:""`
Host string `url:"host"`
Port string `url:"port"`
TokenA string `url:"path1"`
Channel string `url:"path3"`
TokenB string `url:"path2"`
}
Config for the rocket.chat service
func CreateConfigFromURL ¶
CreateConfigFromURL to use within the rocket.chat service
type JSON ¶
type JSON struct {
Text string `json:"text"`
UserName string `json:"username,omitempty"`
Channel string `json:"channel,omitempty"`
}
JSON used within the Rocket.chat service
type Service ¶
Service sends notifications to a pre-configured channel or user
func (*Service) Initialize ¶
Initialize loads ServiceConfig from configURL and sets logger for this Service
Click to show internal directories.
Click to hide internal directories.