Documentation
¶
Index ¶
- type ActionID
- type BlockAction
- type BlockActionID
- type BlockID
- type CallbackID
- type Mention
- type Message
- func (x *Message) ChannelID() string
- func (x *Message) ID() string
- func (x *Message) InThread() bool
- func (x *Message) Mention() []Mention
- func (x *Message) TeamID() string
- func (x *Message) Text() string
- func (x *Message) Thread() Thread
- func (x *Message) ThreadID() string
- func (x *Message) Timestamp() string
- func (x *Message) User() *User
- type PayloadVerifier
- type StateValue
- type Thread
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockAction ¶
type BlockAction slack.BlockAction
type BlockActionID ¶
type BlockActionID string
ActionID in block
const ( BlockActionIDTicketSelect BlockActionID = "ticket_select_input" BlockActionIDTicketID BlockActionID = "ticket_id_input" BlockActionIDTicketComment BlockActionID = "ticket_comment_input" BlockActionIDTicketConclusion BlockActionID = "ticket_conclusion_input" BlockActionIDTicketTags BlockActionID = "ticket_tags_input" BlockActionIDSalvageThreshold BlockActionID = "salvage_threshold_input" BlockActionIDSalvageKeyword BlockActionID = "salvage_keyword_input" BlockActionIDSalvageRefresh BlockActionID = "salvage_refresh_button" )
func (BlockActionID) String ¶
func (id BlockActionID) String() string
type BlockID ¶
type BlockID string
const ( BlockIDTicketSelect BlockID = "ticket_select_block" BlockIDTicketID BlockID = "ticket_id_block" BlockIDTicketConclusion BlockID = "ticket_conclusion_block" BlockIDTicketComment BlockID = "ticket_comment_block" BlockIDTicketTags BlockID = "ticket_tags_block" BlockIDSalvageThreshold BlockID = "salvage_threshold_block" BlockIDSalvageKeyword BlockID = "salvage_keyword_block" )
type CallbackID ¶
type CallbackID string
const ( CallbackSubmitResolveTicket CallbackID = "submit_resolve_ticket" CallbackSubmitBindAlert CallbackID = "submit_bind_alert" CallbackSubmitBindList CallbackID = "submit_bind_list" CallbackSubmitSalvage CallbackID = "submit_salvage" )
func (CallbackID) String ¶
func (id CallbackID) String() string
type Mention ¶
func ParseMention ¶
type Message ¶
type Message struct {
// contains filtered or unexported fields
}
func NewMessage ¶
func NewMessage(ctx context.Context, ev *slackevents.EventsAPIEvent) *Message
type PayloadVerifier ¶
func NewPayloadVerifier ¶
func NewPayloadVerifier(signingSecret string) PayloadVerifier
type StateValue ¶
type StateValue map[string]map[string]BlockAction
func BlockActionFromValue ¶
func BlockActionFromValue(value map[string]map[string]slack.BlockAction) StateValue
Click to show internal directories.
Click to hide internal directories.