Documentation ¶
Index ¶
Constants ¶
View Source
const Scheme = "discord"
Scheme is the identifying part of this service's configuration URL
Variables ¶
This section is empty.
Functions ¶
func CreateAPIURLFromConfig ¶
CreateAPIURLFromConfig takes a discord config object and creates a post url
func CreateJSONToSend ¶
CreateJSONToSend creates a JSON payload to be sent to the discord webhook API
Types ¶
type Config ¶
type Config struct { standard.QuerylessConfig standard.EnumlessConfig Channel string Token string }
Config is the configuration needed to send discord notifications
type JSON ¶
type JSON struct {
Text string `json:"content"`
}
JSON is the actual notification payload
type Service ¶
Service providing Discord as a notification service
func (*Service) Initialize ¶
Initialize loads ServiceConfig from configURL and sets logger for this Service
Click to show internal directories.
Click to hide internal directories.