Documentation ¶
Index ¶
- type Client
- func (client *Client) HandleEvent() func(http.ResponseWriter, *http.Request)
- func (Client *Client) RegisterHandleSub(f HandleSubFunc)
- func (Client *Client) RegisterHandleSummary(f HandleSummaryFunc)
- func (Client *Client) RegisterHandleUnsub(f HandleUnsubFunc)
- func (Client *Client) RegisterOnMsgSent(f OnMsgSentFunc)
- func (client *Client) SendMsg(thread *Thread, text string) error
- type HandleSubFunc
- type HandleSummaryFunc
- type HandleUnsubFunc
- type OnMsgSentFunc
- type Thread
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) HandleEvent ¶
func (client *Client) HandleEvent() func(http.ResponseWriter, *http.Request)
HandleEvent returns handlerFunc for slack webhook event requests.
func (*Client) RegisterHandleSub ¶
func (Client *Client) RegisterHandleSub(f HandleSubFunc)
func (*Client) RegisterHandleSummary ¶
func (Client *Client) RegisterHandleSummary(f HandleSummaryFunc)
func (*Client) RegisterHandleUnsub ¶
func (Client *Client) RegisterHandleUnsub(f HandleUnsubFunc)
func (*Client) RegisterOnMsgSent ¶
func (Client *Client) RegisterOnMsgSent(f OnMsgSentFunc)
type HandleSubFunc ¶
type HandleSummaryFunc ¶
type HandleUnsubFunc ¶
type OnMsgSentFunc ¶
It is impossible to determine from the event whether the message is a reply or not. If ThreadTS is "", go through, but the registrant should determine if the message is a reply to the bot.
Click to show internal directories.
Click to hide internal directories.