ding

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CardRequest added in v1.0.2

type CardRequest struct {
	Msgtype    string                 `json:"msgtype"`
	ActionCard map[string]interface{} `json:"actionCard"`
}

type MarkdownRequest added in v1.0.2

type MarkdownRequest struct {
	Msgtype  string                 `json:"msgtype"`
	Markdown map[string]string      `json:"markdown"`
	At       map[string]interface{} `json:"at,omitempty"`
}

type Request added in v1.0.2

type Request struct {
	Msgtype string                 `json:"msgtype"`
	Text    map[string]string      `json:"text"`
	At      map[string]interface{} `json:"at,omitempty"`
}

type Response added in v1.0.2

type Response struct {
	Errcode int    `json:"errcode"`
	Errmsg  string `json:"errmsg"`
}

type Robot added in v1.0.2

type Robot struct {
	Token string
}

func NewRobot

func NewRobot() *Robot

func (*Robot) CardMessage added in v1.0.2

func (r *Robot) CardMessage(title, text string, btns []map[string]string) error

func (*Robot) MarkdownMessage added in v1.0.2

func (r *Robot) MarkdownMessage(md string, at ...string) error

func (*Robot) Message added in v1.0.2

func (r *Robot) Message(content string, at ...string) error

func (*Robot) SetToken added in v1.0.2

func (r *Robot) SetToken(token string)

Jump to

Keyboard shortcuts

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