Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) Config(secret, accessToken string) *Client
- func (c *Client) ConfigApiClientFun(apiClientFun golog.ApiClientFun)
- func (c *Client) GetAccessToken() string
- func (c *Client) GetLog() *golog.ApiClient
- func (c *Client) GetSecret() string
- func (c *Client) RobotSend(ctx context.Context, notMustParams ...gorequest.Params) *RobotSendResult
- type ClientConfig
- type RobotSendResponse
- type RobotSendResult
Constants ¶
View Source
const (
LogTable = "dingtalk"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v1.0.47
type Client struct {
// contains filtered or unexported fields
}
Client 实例
func NewClient ¶ added in v1.0.47
func NewClient(config *ClientConfig) (*Client, error)
NewClient 创建实例化
func (*Client) ConfigApiClientFun ¶ added in v1.0.52
func (c *Client) ConfigApiClientFun(apiClientFun golog.ApiClientFun)
ConfigApiClientFun 日志配置
func (*Client) GetAccessToken ¶ added in v1.0.52
func (*Client) RobotSend ¶ added in v1.0.47
RobotSend 自定义机器人 https://open.dingtalk.com/document/group/custom-robot-access
type ClientConfig ¶ added in v1.0.52
ClientConfig 实例配置
type RobotSendResponse ¶ added in v1.0.44
type RobotSendResult ¶ added in v1.0.44
type RobotSendResult struct { Result RobotSendResponse // 结果 Body []byte // 内容 Http gorequest.Response // 请求 Err error // 错误 }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.