dingtalk

package
v0.0.0-...-70f4b32 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MSG_TYPE_TEXT     = "text"
	MSG_TYPE_LINK     = "link"
	MSG_TYPE_MARKDOWN = "markdown"
)

Variables

This section is empty.

Functions

func NewDingTalkClient

func NewDingTalkClient(dingRobotUrl string) *dingTalkClient

Types

type At

type At struct {
	IsAtAll   bool     `json:"isAtAll,omitempty"`
	AtMobiles []string `json:"atMobiles,omitempty"`
}

type DingTalkMsg

type DingTalkMsg struct {
	MessageType string   `json:"msgtype"`
	Text        Text     `json:"text,omitempty"`
	Link        Link     `json:"link,omitempty"`
	MarkDown    MarkDown `json:"markdown,omitempty"`
	At          At       `json:"at,omitempty"`
}
type Link struct {
	Title      string `json:"title"`
	Text       string `json:"text"`
	MessageURL string `json:"messageUrl"`
	PictureURL string `json:"picUrl,omitempty"`
}

type MarkDown

type MarkDown struct {
	Title string `json:"title"`
	Text  string `json:"text"`
}

type Text

type Text struct {
	Content string `json:"content"`
	At      At     `json:"at,omitempty"`
}

Jump to

Keyboard shortcuts

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