Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) SetClientIP(clientIP string) *Client
- func (c *Client) SetLogFun(logFun gorequest.LogFunc)
- func (c *Client) WebhookSend(ctx context.Context, key string, notMustParams ...*gorequest.Params) (*WebhookSendResult, error)
- func (c *Client) WebhookSendSign(ctx context.Context, key string, secret string, ...) (*WebhookSendResult, error)
- func (c *Client) WebhookSendSignURL(ctx context.Context, url string, secret string, ...) (*WebhookSendResult, error)
- func (c *Client) WebhookSendURL(ctx context.Context, url string, notMustParams ...*gorequest.Params) (*WebhookSendResult, error)
- type WebhookSendResponse
- type WebhookSendResult
Constants ¶
View Source
const (
LogTable = "feishu"
)
View Source
const (
Version = "1.0.25"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client 实例
func (*Client) WebhookSend ¶
func (c *Client) WebhookSend(ctx context.Context, key string, notMustParams ...*gorequest.Params) (*WebhookSendResult, error)
WebhookSend 发送消息 https://open.feishu.cn/document/ukTMukTMukTM/ucTM5YjL3ETO24yNxkjN
func (*Client) WebhookSendSign ¶
func (c *Client) WebhookSendSign(ctx context.Context, key string, secret string, notMustParams ...*gorequest.Params) (*WebhookSendResult, error)
WebhookSendSign 发送消息签名版 https://open.feishu.cn/document/ukTMukTMukTM/ucTM5YjL3ETO24yNxkjN
func (*Client) WebhookSendSignURL ¶ added in v1.0.22
func (c *Client) WebhookSendSignURL(ctx context.Context, url string, secret string, notMustParams ...*gorequest.Params) (*WebhookSendResult, error)
WebhookSendSignURL 发送消息签名版 https://open.feishu.cn/document/ukTMukTMukTM/ucTM5YjL3ETO24yNxkjN
func (*Client) WebhookSendURL ¶ added in v1.0.22
func (c *Client) WebhookSendURL(ctx context.Context, url string, notMustParams ...*gorequest.Params) (*WebhookSendResult, error)
WebhookSendURL 发送消息 https://open.feishu.cn/document/ukTMukTMukTM/ucTM5YjL3ETO24yNxkjN
type WebhookSendResponse ¶
type WebhookSendResult ¶
type WebhookSendResult struct { Result WebhookSendResponse // 结果 Body []byte // 内容 Http gorequest.Response // 请求 }
Click to show internal directories.
Click to hide internal directories.