Documentation
¶
Index ¶
- Variables
- type DiscordAlertClient
- func (c DiscordAlertClient) NewMessage() domain.DiscordMessage
- func (c *DiscordAlertClient) ReplaceContent(content string)
- func (c DiscordAlertClient) Send() error
- func (c DiscordAlertClient) SendMessage(msg domain.DiscordMessage) error
- func (c *DiscordAlertClient) SetMessage(Message domain.DiscordMessage)
- func (c *DiscordAlertClient) UpdateContent(content string)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrDiscordContentLengthTooLong = "the message length is greater then 2000 characters"
)
Functions ¶
This section is empty.
Types ¶
type DiscordAlertClient ¶
type DiscordAlertClient struct {
// contains filtered or unexported fields
}
func NewDiscordAlertClient ¶
func NewDiscordAlertClient(Webhooks []string, Username string) DiscordAlertClient
func (DiscordAlertClient) NewMessage ¶
func (c DiscordAlertClient) NewMessage() domain.DiscordMessage
func (*DiscordAlertClient) ReplaceContent ¶
func (c *DiscordAlertClient) ReplaceContent(content string)
func (DiscordAlertClient) Send ¶
func (c DiscordAlertClient) Send() error
func (DiscordAlertClient) SendMessage ¶
func (c DiscordAlertClient) SendMessage(msg domain.DiscordMessage) error
func (*DiscordAlertClient) SetMessage ¶
func (c *DiscordAlertClient) SetMessage(Message domain.DiscordMessage)
func (*DiscordAlertClient) UpdateContent ¶
func (c *DiscordAlertClient) UpdateContent(content string)
Click to show internal directories.
Click to hide internal directories.