feishu

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFeishuNotify

func NewFeishuNotify(appId, appSecret string, opts ...lark.ClientOptionFunc) (notify.Notifier[*larkim.CreateMessageReq], error)

NewFeishuNotify SDK 使用文档:https://github.com/larksuite/oapi-sdk-go/tree/v3_main

func NewFeishuNotifyByClient added in v0.1.2

func NewFeishuNotifyByClient(client *lark.Client) (notify.Notifier[*larkim.CreateMessageReq], error)

Types

type Content

type Content interface {
	Builder() (string, error)
	MsgType() string
}

func NewFeishuCustom

func NewFeishuCustom(msgType, content string) Content

func NewFeishuCustomCard

func NewFeishuCustomCard(tmpl *template.Template, name string, data map[string]interface{}) Content

func NewFeishuTemplateCard

func NewFeishuTemplateCard(templateId string, version string, variable map[string]string) Content

type Feishu

type Feishu struct {
	ReceiveIdType string
	ReceiveId     string
	MsgType       string
	Content       string
	Error         error
}

func NewFeishuMessage

func NewFeishuMessage(ReceiveIdType, ReceiveId string, c Content) *Feishu

func (*Feishu) Message

func (f *Feishu) Message() (*larkim.CreateMessageReq, error)

type Notifier

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

func (*Notifier) Send

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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