notification

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NotifyAll

func NotifyAll(cfg *config.NotificationConfig, summary *SyncSummary) error

Types

type GotifyProvider

type GotifyProvider struct {
	// contains filtered or unexported fields
}

func NewGotifyProvider

func NewGotifyProvider(cfg *config.GotifyConfig) *GotifyProvider

func (*GotifyProvider) Send

func (g *GotifyProvider) Send(title, message string) error

type NotificationProvider

type NotificationProvider interface {
	Send(title, message string) error
}

type NtfyProvider

type NtfyProvider struct {
	// contains filtered or unexported fields
}

func NewNtfyProvider

func NewNtfyProvider(cfg *config.NtfyConfig) *NtfyProvider

func (*NtfyProvider) Send

func (n *NtfyProvider) Send(title, message string) error

type SyncSummary

type SyncSummary struct {
	ReposSuccess int
	ReposFailed  []string
	WikisSuccess int
	WikisFailed  []string
}

func (*SyncSummary) FormatMessage

func (s *SyncSummary) FormatMessage() string

func (*SyncSummary) HasFailures

func (s *SyncSummary) HasFailures() bool

Jump to

Keyboard shortcuts

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