Documentation ¶
Index ¶
- func CreateTransmitterFromForm(transmitterType string, ctx *gin.Context, ...) []byte
- func NewTransmitterForm(transmitterType string) []byte
- func SetGlobalLogger(logger *log.Logger)
- type DiscordAdvanceTransmitter
- func (trans DiscordAdvanceTransmitter) Active() bool
- func (trans DiscordAdvanceTransmitter) GetStorageValue(id int) structs.TransmitterStorage
- func (trans *DiscordAdvanceTransmitter) GetTransmitCount() int
- func (trans DiscordAdvanceTransmitter) HTMLCard(id int) string
- func (trans *DiscordAdvanceTransmitter) SetStatus(active bool)
- func (trans *DiscordAdvanceTransmitter) Transmit(msg structs.GotifyMessageStruct, server gotify_api.GotifyApi)
- type DiscordEmbedField
- type DiscordEmbedStructure
- type DiscordHookInfo
- type DiscordWebhookPayload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTransmitterForm ¶
func SetGlobalLogger ¶
Types ¶
type DiscordAdvanceTransmitter ¶
type DiscordAdvanceTransmitter struct {
// contains filtered or unexported fields
}
func Build ¶
func Build(discordHook string, name string, status bool, count int) DiscordAdvanceTransmitter
func (DiscordAdvanceTransmitter) Active ¶
func (trans DiscordAdvanceTransmitter) Active() bool
func (DiscordAdvanceTransmitter) GetStorageValue ¶
func (trans DiscordAdvanceTransmitter) GetStorageValue(id int) structs.TransmitterStorage
func (*DiscordAdvanceTransmitter) GetTransmitCount ¶
func (trans *DiscordAdvanceTransmitter) GetTransmitCount() int
func (DiscordAdvanceTransmitter) HTMLCard ¶
func (trans DiscordAdvanceTransmitter) HTMLCard(id int) string
func (*DiscordAdvanceTransmitter) SetStatus ¶
func (trans *DiscordAdvanceTransmitter) SetStatus(active bool)
func (*DiscordAdvanceTransmitter) Transmit ¶
func (trans *DiscordAdvanceTransmitter) Transmit(msg structs.GotifyMessageStruct, server gotify_api.GotifyApi)
type DiscordEmbedField ¶
type DiscordEmbedStructure ¶
type DiscordHookInfo ¶
type DiscordHookInfo struct {
Name string
}
type DiscordWebhookPayload ¶
type DiscordWebhookPayload struct { Username string `json:"username"` Embeds []DiscordEmbedStructure `json:"embeds"` }
Click to show internal directories.
Click to hide internal directories.