Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSignatureBlock ¶ added in v0.0.8
CreateSignatureBlock creates a standardized signature block for Slack messages that includes metadata and a call for user feedback
Types ¶
type Integration ¶
type Integration interface {
Run(ctx context.Context) error
GetBotChannels() ([]slack.Channel, error)
PostMessage(ctx context.Context, channelID string, messageBlocks ...slack.Block) error
PostThreadReply(ctx context.Context, channelID, ts string, messageBlocks ...slack.Block) error
Client() *slack.Client
GetConversationInfo(ctx context.Context, channelID string) (*slack.Channel, error)
GetConversationHistory(ctx context.Context, channelID string, lastNMsgs int) ([]slack.Message, error)
GetConversationReplies(ctx context.Context, channelID, ts string) ([]slack.Message, error)
BotUserID() string
GetUserIDByEmail(ctx context.Context, email string) (string, error)
}
Click to show internal directories.
Click to hide internal directories.