client

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Webhook = "https://oapi.dingtalk.com/robot/send"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewDingTalkClient

func NewDingTalkClient(token string, keyWork string, timeOut time.Duration, insecureSkipVerify bool) *Client

func (*Client) Send

func (client *Client) Send(msg any) error

func (*Client) SendActionCardMessage

func (client *Client) SendActionCardMessage(actionCard message.ActionCard) error

func (*Client) SendFeedCardMessage

func (client *Client) SendFeedCardMessage(links []message.FeedCardLink) error

func (*Client) SendLinkMessage

func (client *Client) SendLinkMessage(link message.Link) error

func (*Client) SendMarkDownMessage

func (client *Client) SendMarkDownMessage(markdown message.Markdown, at message.At) error

func (*Client) SendTextMessage

func (client *Client) SendTextMessage(content string, at message.At) error

Jump to

Keyboard shortcuts

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