method

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FeishuUserMethod       = "feishu_user"
	FeishuAutomationMethod = "feishu_automation"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FeishuAutomationNotify

type FeishuAutomationNotify struct {
	Nc notify.Notifier[*larkim.CreateMessageReq]
	// contains filtered or unexported fields
}

func NewFeishuAutomationNotify

func NewFeishuAutomationNotify(lark *lark.Client) (*FeishuAutomationNotify, error)

func (*FeishuAutomationNotify) Builder

func (n *FeishuAutomationNotify) Builder(title string, users []user.User, params NotifyParams) []notify.NotifierWrap

type FeishuUserNotify

type FeishuUserNotify struct {
	Nc notify.Notifier[*larkim.CreateMessageReq]
	// contains filtered or unexported fields
}

func NewFeishuUserNotify

func NewFeishuUserNotify(lark *lark.Client) (*FeishuUserNotify, error)

func (*FeishuUserNotify) Builder

func (n *FeishuUserNotify) Builder(title string, users []user.User, params NotifyParams) []notify.NotifierWrap

type NotifierIntegration

type NotifierIntegration interface {
	Builder(title string, users []user.User, params NotifyParams) []notify.NotifierWrap
}

type NotifyIntegration

type NotifyIntegration struct {
	Notifier NotifierIntegration
	Name     string
}

func BuildReceiverIntegrations

func BuildReceiverIntegrations(larkC *lark.Client) ([]NotifyIntegration, error)

BuildReceiverIntegrations 整合消息通知渠道

func NewNotifyIntegration

func NewNotifyIntegration(n NotifierIntegration, name string) NotifyIntegration

type NotifyParams

type NotifyParams struct {
	Rules      []rule.Rule
	Order      order.Order
	Tasks      []model.Task
	WantResult map[string]interface{}
}

Jump to

Keyboard shortcuts

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