Documentation ¶
Index ¶
- func NewCreateFeishuNotify(appId, appSecret string, opts ...lark.ClientOptionFunc) (notify.Notifier[*larkim.CreateMessageReq], error)
- func NewCreateFeishuNotifyByClient(client *lark.Client) (notify.Notifier[*larkim.CreateMessageReq], error)
- func NewFeishuCustom(msgType, content string) message.Content
- func NewFeishuCustomCard(tmpl *template.Template, name string, data map[string]interface{}) message.Content
- func NewFeishuTemplateCard(templateId string, version string, variable map[string]string) message.Content
- func NewPatchFeishuNotify(appId, appSecret string, opts ...lark.ClientOptionFunc) (notify.Notifier[*larkim.PatchMessageReq], error)
- func NewPatchFeishuNotifyByClient(client *lark.Client) (notify.Notifier[*larkim.PatchMessageReq], error)
- type CreateNotify
- type PatchNotify
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCreateFeishuNotify ¶ added in v0.1.10
func NewCreateFeishuNotify(appId, appSecret string, opts ...lark.ClientOptionFunc) ( notify.Notifier[*larkim.CreateMessageReq], error)
NewCreateFeishuNotify SDK 使用文档:https://github.com/larksuite/oapi-sdk-go/tree/v3_main
func NewCreateFeishuNotifyByClient ¶ added in v0.1.11
func NewCreateFeishuNotifyByClient(client *lark.Client) (notify.Notifier[*larkim.CreateMessageReq], error)
func NewFeishuCustom ¶
func NewFeishuCustomCard ¶
func NewFeishuTemplateCard ¶
func NewPatchFeishuNotify ¶ added in v0.1.13
func NewPatchFeishuNotifyByClient ¶ added in v0.1.13
func NewPatchFeishuNotifyByClient(client *lark.Client) (notify.Notifier[*larkim.PatchMessageReq], error)
Types ¶
type CreateNotify ¶ added in v0.1.10
type CreateNotify struct {
// contains filtered or unexported fields
}
func (*CreateNotify) Send ¶ added in v0.1.10
func (n *CreateNotify) Send(ctx context.Context, notify notify.BasicNotificationMessage[*larkim.CreateMessageReq]) ( bool, error)
type PatchNotify ¶ added in v0.1.13
type PatchNotify struct {
// contains filtered or unexported fields
}
func (*PatchNotify) Send ¶ added in v0.1.13
func (n *PatchNotify) Send(ctx context.Context, notify notify.BasicNotificationMessage[*larkim.PatchMessageReq]) ( bool, error)
Click to show internal directories.
Click to hide internal directories.