Documentation
¶
Index ¶
- type IzSlackBlock
- type IzySlack
- func (receiver *IzySlack) HandleChallengeRequest(w http.ResponseWriter, challenge string)
- func (receiver *IzySlack) IsChallengeRequest(requestBody *io.ReadCloser) (bool, *string, error)
- func (receiver *IzySlack) ReceiveEvent(r *http.Request) (*IzySlackEvent, error)
- func (receiver *IzySlack) ReplyMessage(channel string, text string, ts string) error
- func (receiver *IzySlack) SendMessage(channel string, text string) error
- func (receiver *IzySlack) VerifySignature(r *http.Request) bool
- type IzySlackAuthorization
- type IzySlackCredentials
- type IzySlackElement
- type IzySlackEvent
- type IzySlackSubElement
- type IzySlackSubEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IzSlackBlock ¶
type IzSlackBlock struct {
Type string `json:"type"`
BlockID string `json:"block_id"`
Elements []IzySlackElement `json:"elements"`
}
type IzySlack ¶
type IzySlack struct {
Credentials *IzySlackCredentials
Client *slack.Client
}
func Initialize ¶
func (*IzySlack) HandleChallengeRequest ¶
func (receiver *IzySlack) HandleChallengeRequest(w http.ResponseWriter, challenge string)
func (*IzySlack) IsChallengeRequest ¶
func (*IzySlack) ReceiveEvent ¶
func (receiver *IzySlack) ReceiveEvent(r *http.Request) (*IzySlackEvent, error)
func (*IzySlack) ReplyMessage ¶
func (*IzySlack) SendMessage ¶
type IzySlackAuthorization ¶
type IzySlackCredentials ¶
type IzySlackElement ¶
type IzySlackElement struct {
Type string `json:"type"`
Elements []IzySlackSubElement `json:"elements,omitempty"`
UserID string `json:"user_id,omitempty"`
Text string `json:"text,omitempty"`
}
type IzySlackEvent ¶
type IzySlackEvent struct {
Token string `json:"token"`
TeamID string `json:"team_id"`
APIAppID string `json:"api_app_id"`
Event IzySlackSubEvent `json:"event"`
Type string `json:"type"`
EventID string `json:"event_id"`
EventTime int64 `json:"event_time"`
Authorizations []IzySlackAuthorization `json:"authorizations"`
EventContext string `json:"event_context"`
}
type IzySlackSubElement ¶
type IzySlackSubEvent ¶
type IzySlackSubEvent struct {
User string `json:"user"`
Type string `json:"type"`
TS string `json:"ts"`
ClientMsgID string `json:"client_msg_id"`
Text string `json:"text"`
Team string `json:"team"`
Blocks []IzSlackBlock `json:"blocks"`
Channel string `json:"channel"`
EventTS string `json:"event_ts"`
}
Click to show internal directories.
Click to hide internal directories.