Versions in this module Expand all Collapse all v1 v1.0.1 Oct 29, 2026 v1.0.0 Oct 26, 2026 Changes in this version + const HeaderAPIKey + const ProfileApprise + const ProfileCustom + const ProfileDiscord + const ProfileGotify + const ProfileMattermost + const ProfileNotifiarr + const ProfileNtfy + const ProfilePushover + const ProfileSlack + const ProfileTelegram + const WebhookTemplateApprise + const WebhookTemplateDiscord + const WebhookTemplateGotify + const WebhookTemplateMattermost + const WebhookTemplateNotifiarr + const WebhookTemplateNtfy + const WebhookTemplatePushover + const WebhookTemplateSlack + const WebhookTemplateTelegram + var ErrCmdhookNoCmd = errors.New("cmdhook without a command configured; fix it") + var ErrHeaderDup = errors.New("duplicate webhook header name") + var ErrHeaderName = errors.New("webhook header name must be letters, digits, underscore, or hyphen") + var ErrHeaderValue = errors.New("webhook header value cannot contain a newline") + var ErrInvalidStatus = errors.New("invalid HTTP status reply") + var ErrMessageGone = errors.New("previous message is gone") + var ErrNilConfig = errors.New("nil config entry") + var ErrUnknownEvent = errors.New("unknown extract event") + var ErrWebhookNoURL = errors.New("webhook without a URL configured; fix it") + func BuiltinWebhookTemplate(name string) (string, bool) + func CountAll(hooks []*Config) (uint, uint) + func DefaultContentType(name, rawURL string) string + func Fire(ctx context.Context, hook *Config, payload *Payload) (string, error) + func LogEvents(events []extract.Status) string + func NormalizeNotifiarr(hook *Config) + func PrepareSample(payload *Payload, event extract.Status) error + func RedactHeaderSecrets(headers map[string]string) + func SecretHeaderName(name string) bool + func SendWithLog(log Logger, hook *Config, payload *Payload) error + func ValidateCmdhooks(list []*Config, defaultTimeout time.Duration, expandHome func(string) string) error + func ValidateHeaders(headers map[string]string) error + func ValidateWebhooks(list []*Config, defaultTimeout time.Duration) error + func WebhookTemplateFileName(name string) string + type Config struct + CType string + Channel string + Command string + Events Statuses + Exclude StringSlice + Headers HeaderMap + IgnoreSSL bool + Name string + Nickname string + Shell bool + Silent bool + TempName string + Timeout cnfg.Duration + TmplPath string + Token string + URL string + Update *bool + func CloneList(src []*Config) []*Config + func (w *Config) Counts() (uint, uint) + func (w *Config) Excluded(app starr.App, name string) bool + func (w *Config) HasEvent(e extract.Status) bool + func (w *Config) Send(body io.Reader) ([]byte, error) + func (w *Config) Template() (*template.Template, error) + func (w *Config) WantUpdate() bool + type HeaderMap = map[string]string + type Item struct + Done func(error) + LookupID func() string + SaveID func(string) + type Logger interface + Debugf func(msg string, v ...any) + Errorf func(msg string, v ...any) + Printf func(msg string, v ...any) + type Payload struct + App starr.App + Arch string + Branch string + Config *Config + CustomIDs map[string]string + Data *XtractPayload + Event extract.Status + EventTitle string + Go string + IDs map[string]any + OS string + Path string + Retries uint + Revision string + Started time.Time + Time time.Time + Version string + func SamplePayload() *Payload + func (p *Payload) Title() string + type Profile struct + CanUpdate bool + Name string + func Detect(name, rawURL, tmplPath string) Profile + func DetectTransport(name, rawURL string) Profile + type Statuses []extract.Status + func (statuses *Statuses) MarshalENV(tag string) (map[string]string, error) + func (statuses *Statuses) UnmarshalENV(tag, envval string) error + type StringSlice []string + func (slice *StringSlice) MarshalENV(tag string) (map[string]string, error) + func (slice *StringSlice) UnmarshalENV(_, envval string) error + type Worker struct + func NewWorker(buf int) *Worker + func (w *Worker) Cap() int + func (w *Worker) Enqueue(item *Item) + func (w *Worker) Len() int + func (w *Worker) Run(log Logger, after func()) + type XtractPayload struct + Archive []string + Archives StringSlice + Bytes uint64 + Elapsed cnfg.Duration + Error string + File []string + Files StringSlice + Output string + Queue int + Start time.Time