Versions in this module Expand all Collapse all v1 v1.1.3 May 9, 2024 Changes in this version + const ACTION_CARD + const FEED_CARD + const LINK + const MARKDOWN + const TEXT + func DingMap() *dingMap + func NewActionCardMsg(title, text string, opts ...actionCardOption) *actionCardMsg + func NewDTMDMsg(title string, dtmdMap *dingMap, opts ...atOption) *markDownMsg + func NewFeedCardMsg(feedCard []FeedCardLinkModel) *feedCardMsg + func NewLinkMsg(title, text, picUrl, msgUrl string) *linkMsg + func NewMarkDownMsg(title string, text interface{}, opts ...atOption) *markDownMsg + func NewTextMsg(content string, opts ...atOption) *textMsg + func RegisterCommand(name string, execFunc ExecFunc, arity int, isAdmin bool) + func WithAtAll() atOption + func WithAtMobiles(mobiles []string) atOption + func WithCardBtnVertical() actionCardOption + func WithCardBtns(btns []ActionCardMultiBtnModel) actionCardOption + func WithCardSingleTitle(title string) actionCardOption + func WithCardSingleURL(url string) actionCardOption + func WithInitSendTimeout(v time.Duration) initOption + type ActionCardMultiBtnModel struct + ActionURL string + Title string + type DingTalk struct + InitModel initModel + func InitDingTalk(tokens []string, key string, opts ...initOption) *DingTalk + func InitDingTalkWithSecret(tokens string, secret string, opts ...initOption) *DingTalk + func (d *DingTalk) OutGoing(r io.Reader) (outGoingMsg outGoingModel, err error) + func (d *DingTalk) SendActionCardMessage(title, text string, opts ...actionCardOption) error + func (d *DingTalk) SendActionCardMessageBySlice(title string, textList []string, opts ...actionCardOption) error + func (d *DingTalk) SendActionCardMessageBySliceWithCtx(ctx context.Context, title string, textList []string, opts ...actionCardOption) error + func (d *DingTalk) SendActionCardMessageWithCtx(ctx context.Context, title, text string, opts ...actionCardOption) error + func (d *DingTalk) SendDTMDMessage(title string, dtmdMap *dingMap, opt ...atOption) error + func (d *DingTalk) SendDTMDMessageWithCtx(ctx context.Context, title string, dtmdMap *dingMap, opt ...atOption) error + func (d *DingTalk) SendFeedCardMessage(feedCard []FeedCardLinkModel) error + func (d *DingTalk) SendFeedCardMessageWithCtx(ctx context.Context, feedCard []FeedCardLinkModel) error + func (d *DingTalk) SendLinkMessage(title, text, picUrl, msgUrl string) error + func (d *DingTalk) SendLinkMessageWithCtx(ctx context.Context, title, text, picUrl, msgUrl string) error + func (d *DingTalk) SendMarkDownMessage(title, text string, opts ...atOption) error + func (d *DingTalk) SendMarkDownMessageBySlice(title string, textList []string, opts ...atOption) error + func (d *DingTalk) SendMarkDownMessageBySliceWithCtx(ctx context.Context, title string, textList []string, opts ...atOption) error + func (d *DingTalk) SendMarkDownMessageWithCtx(ctx context.Context, title, text string, opts ...atOption) error + func (d *DingTalk) SendTextMessage(content string, opt ...atOption) error + func (d *DingTalk) SendTextMessageWithCtx(ctx context.Context, content string, opt ...atOption) error + type ExecFunc func(args []string) []byte + type FeedCardLinkModel struct + MessageURL string + PicURL string + Title string + type MarkType string + const BLUE + const GOLD + const GREEN + const H1 + const H2 + const H3 + const H4 + const H5 + const H6 + const N + const RED + type OutGoingHandler struct + func (h *OutGoingHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) v1.1.2 May 8, 2024 v1.1.1 Jan 25, 2024