Documentation ¶
Index ¶
- type Robot
- func (r *Robot) GetCurrentWebHook() string
- func (r Robot) SendActionCard(title, text, singleTitle, singleURL, btnOrientation, hideAvatar string) error
- func (r Robot) SendLink(title, text, messageURL, picURL string) error
- func (r Robot) SendMarkdown(title, text string, atMobiles []string, isAtAll bool) error
- func (r Robot) SendText(content string, atMobiles []string, isAtAll bool) error
- func (r *Robot) SetSecret(secret string)
- type Roboter
- type SilenceDingRobot
- func (s *SilenceDingRobot) GetCurrentWebHook() string
- func (s *SilenceDingRobot) SendActionCard(title, text, singleTitle, singleURL, btnOrientation, hideAvatar string) error
- func (s *SilenceDingRobot) SendLink(title, text, messageURL, picURL string) error
- func (s *SilenceDingRobot) SendMarkdown(title, text string, atMobiles []string, isAtAll bool) error
- func (s *SilenceDingRobot) SendText(content string, atMobiles []string, isAtAll bool) error
- func (s *SilenceDingRobot) SetSecret(secret string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Robot ¶
type Robot struct {
// contains filtered or unexported fields
}
Robot represents a dingtalk custom robot that can send messages to groups.
func (*Robot) GetCurrentWebHook ¶
Fetcher Current Webhook
func (Robot) SendActionCard ¶
func (r Robot) SendActionCard(title, text, singleTitle, singleURL, btnOrientation, hideAvatar string) error
SendActionCard send a action card type message.
func (Robot) SendMarkdown ¶
SendMarkdown send a markdown type message.
type Roboter ¶
type Roboter interface { SendText(content string, atMobiles []string, isAtAll bool) error SendLink(title, text, messageURL, picURL string) error SendMarkdown(title, text string, atMobiles []string, isAtAll bool) error SendActionCard(title, text, singleTitle, singleURL, btnOrientation, hideAvatar string) error SetSecret(secret string) GetCurrentWebHook() string }
Roboter is the interface implemented by Robot that can send multiple types of messages.
type SilenceDingRobot ¶
type SilenceDingRobot struct {
Roboter
}
func NewSilenceDingRobot ¶
func NewSilenceDingRobot() *SilenceDingRobot
func (*SilenceDingRobot) GetCurrentWebHook ¶
func (s *SilenceDingRobot) GetCurrentWebHook() string
func (*SilenceDingRobot) SendActionCard ¶
func (s *SilenceDingRobot) SendActionCard(title, text, singleTitle, singleURL, btnOrientation, hideAvatar string) error
func (*SilenceDingRobot) SendLink ¶
func (s *SilenceDingRobot) SendLink(title, text, messageURL, picURL string) error
func (*SilenceDingRobot) SendMarkdown ¶
func (s *SilenceDingRobot) SendMarkdown(title, text string, atMobiles []string, isAtAll bool) error
func (*SilenceDingRobot) SendText ¶
func (s *SilenceDingRobot) SendText(content string, atMobiles []string, isAtAll bool) error
func (*SilenceDingRobot) SetSecret ¶
func (s *SilenceDingRobot) SetSecret(secret string)
Click to show internal directories.
Click to hide internal directories.