Documentation
¶
Overview ¶
Copyright © 2024-2025 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Copyright © 2024-2025 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notifier ¶
type Notifier interface {
Notify(atom *specs.AutogenAtom, msg string) error
GetType() string
GetHook() *specs.MarkDevkitHook
}
func NewNotifier ¶
type NotifierDiscord ¶
type NotifierDiscord struct {
RestGuard *guard.RestGuard
MapServices map[string]*guard_specs.RestService
RateLimit string
Hook *specs.MarkDevkitHook
}
func NewNotifierDiscord ¶
func NewNotifierDiscord(opts map[string]string, hook *specs.MarkDevkitHook) *NotifierDiscord
func (*NotifierDiscord) GetHook ¶
func (n *NotifierDiscord) GetHook() *specs.MarkDevkitHook
func (*NotifierDiscord) GetRestGuardService ¶
func (n *NotifierDiscord) GetRestGuardService(service string) *guard_specs.RestService
func (*NotifierDiscord) GetType ¶
func (n *NotifierDiscord) GetType() string
func (*NotifierDiscord) Notify ¶
func (n *NotifierDiscord) Notify(atom *specs.AutogenAtom, msg string) error
type WebhookMsg ¶
type WebhookMsg struct {
Content string `json:"content"`
}
Click to show internal directories.
Click to hide internal directories.