Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateComparisonMessage ¶ added in v0.1.0
func GenerateComparisonMessage(repo providers.Repository, fromRef, toRef providers.Ref, cmp providers.Comparison, slackUserID string) slack.Blocks
GenerateComparisonMessage ..
func GetModalRequest ¶ added in v0.1.0
func GetModalRequest(opts ModalRequestOptions) (mvr slack.ModalViewRequest)
GetModalRequest ..
Types ¶
type ModalRequestOptions ¶ added in v0.1.0
type ModalRequestOptions struct {
ConversationID string
Repository providers.Repository
FromRef providers.Ref
ToRef providers.Ref
Comparison *providers.Comparison
LastRepositoriesUpdate time.Time
CurrentlyUpdatingRepositories bool
CurrentlyUpdatingRepositoryRefs bool
}
ModalRequestOptions ..
type NewOptions ¶
NewOptions holds configuration parameters to create a new and operational Slack object
type Slack ¶
Slack holds clients and configuration to perform operations upon the Slack API, git providers and storage/cache endpoints
func (*Slack) ListSlackUserEmailMappings ¶ added in v0.1.0
ListSlackUserEmailMappings returns a mapping between email addresses and slack user IDs
func (Slack) SendMessage ¶ added in v0.1.0
SendMessage on a given channel ID
func (Slack) VerifySigningSecret ¶ added in v0.1.0
VerifySigningSecret was taken from the slash example https://github.com/slack-go/slack/blob/master/examples/slash/slash.go
type ViewSubmissionResponse ¶ added in v0.1.0
type ViewSubmissionResponse struct {
ResponseType string `json:"response_type"`
Errors map[string]string `json:"errors,omitempty"`
}
ViewSubmissionResponse ..
Click to show internal directories.
Click to hide internal directories.