notify

package
v0.3.21 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2025 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendToAllChannels deprecated

func SendToAllChannels(subject, message string) error

Deprecated: v0.4.x 将废弃

func SendToChannel deprecated

func SendToChannel(subject, message string, channel string, channelConfig map[string]any) error

Deprecated: v0.4.x 将废弃

Types

type Notifier

type Notifier interface {
	Notify(ctx context.Context) error
}

func NewWithWorkflowNode

func NewWithWorkflowNode(config NotifierWithWorkflowNodeConfig) (Notifier, error)

type NotifierWithWorkflowNodeConfig

type NotifierWithWorkflowNodeConfig struct {
	Node    *domain.WorkflowNode
	Logger  *slog.Logger
	Subject string
	Message string
}

type NotifyService deprecated

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

Deprecated: v0.4.x 将废弃

func NewNotifyService deprecated

func NewNotifyService(settingsRepo settingsRepository) *NotifyService

Deprecated: v0.4.x 将废弃

func (*NotifyService) Test deprecated

Deprecated: v0.4.x 将废弃

Jump to

Keyboard shortcuts

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