notifier

package
v0.28.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2025 License: GPL-3.0 Imports: 12 Imported by: 0

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

func NewNotifier(t string, opts map[string]string, h *specs.MarkDevkitHook) (Notifier, error)

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL