Documentation
¶
Index ¶
- type IzSlackBlock
- type IzySlack
- func (receiver *IzySlack) GetUserInfo(userId string) (*slack.User, error)
- func (receiver *IzySlack) HandleChallengeRequest(w http.ResponseWriter, challenge string)
- func (receiver *IzySlack) HandleChallengeRequestLambda(challenge string) events.LambdaFunctionURLResponse
- func (receiver *IzySlack) IsChallengeRequest(body []byte) (bool, *string, error)
- func (receiver *IzySlack) ReceiveEvent(body []byte) (*IzySlackEvent, error)
- func (receiver *IzySlack) ReplyMessage(channel string, text string, ts string) error
- func (receiver *IzySlack) ReplyWithFile(channel string, filePath string, threadTs string) error
- func (receiver *IzySlack) SendMessage(channel string, text string) error
- func (receiver *IzySlack) UploadFile(channel string, filePath string) error
- func (receiver *IzySlack) VerifySignature(header http.Header, body []byte) bool
- func (receiver *IzySlack) VerifySignatureLambda(header map[string]string, body []byte) 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) GetUserInfo ¶ added in v0.1.5
func (*IzySlack) HandleChallengeRequest ¶
func (receiver *IzySlack) HandleChallengeRequest(w http.ResponseWriter, challenge string)
func (*IzySlack) HandleChallengeRequestLambda ¶ added in v0.1.3
func (receiver *IzySlack) HandleChallengeRequestLambda(challenge string) events.LambdaFunctionURLResponse
func (*IzySlack) IsChallengeRequest ¶
func (*IzySlack) ReceiveEvent ¶
func (receiver *IzySlack) ReceiveEvent(body []byte) (*IzySlackEvent, error)
func (*IzySlack) ReplyMessage ¶
func (*IzySlack) ReplyWithFile ¶ added in v0.1.2
func (*IzySlack) SendMessage ¶
func (*IzySlack) UploadFile ¶ added in v0.1.2
func (*IzySlack) VerifySignature ¶
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"`
ThreadTs string `json:"thread_ts"`
Text string `json:"text"`
Team string `json:"team"`
Blocks []IzSlackBlock `json:"blocks"`
Channel string `json:"channel"`
ChannelType string `json:"channel_type"`
EventTS string `json:"event_ts"`
}
Click to show internal directories.
Click to hide internal directories.