Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) Connect(ctx context.Context) error
- func (c *Client) Delete(ctx context.Context, issue *models.Issue, reason string, ...) error
- func (c *Client) DeletePost(ctx context.Context, channelID, ts string) error
- func (c *Client) GetChannelName(ctx context.Context, channelID string) string
- func (c *Client) GetUserInfo(ctx context.Context, userID string) (*slack.User, error)
- func (c *Client) IsAlertChannel(ctx context.Context, channelID string) (bool, string, error)
- func (c *Client) OpenModal(ctx context.Context, triggerID string, request slack.ModalViewRequest) error
- func (c *Client) PostEphemeral(ctx context.Context, channelID, userID string, options ...slack.MsgOption) (string, error)
- func (c *Client) RunSocketMode(ctx context.Context) error
- func (c *Client) SendResponse(ctx context.Context, channelID, responseURL, responseType, text string) error
- func (c *Client) SetIssueFinder(issueFinder IssueFinder)
- func (c *Client) Update(ctx context.Context, channelID string, allChannelIssues []*models.Issue) error
- func (c *Client) UpdateSingleIssue(ctx context.Context, issue *models.Issue, reason string) error
- func (c *Client) UpdateSingleIssueWithThrottling(ctx context.Context, issue *models.Issue, reason string, issuesInChannel int) error
- func (c *Client) UserIsInGroup(ctx context.Context, groupID, userID string) bool
- type FifoQueueProducer
- type IssueFinder
Constants ¶
View Source
const ( // PostIDInvalidChannel represents the post ID for issues with invalid channel ID PostIDInvalidChannel = "INVALID_CHANNEL_ID" SlackErrIsArchived = "is_archived" SlackErrChannelNotFound = "channel_not_found" SlackErrMessageNotFound = "message_not_found" SlackErrCantDelete = "cant_delete_message" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func New ¶
func New(commandHandler FifoQueueProducer, cacheStore store.StoreInterface, logger types.Logger, metrics types.Metrics, cfg *config.ManagerConfig, managerSettings *models.ManagerSettingsWrapper) *Client
func (*Client) DeletePost ¶
func (*Client) GetChannelName ¶
func (*Client) GetUserInfo ¶
func (*Client) IsAlertChannel ¶
func (*Client) PostEphemeral ¶
func (*Client) SendResponse ¶
func (*Client) SetIssueFinder ¶
func (c *Client) SetIssueFinder(issueFinder IssueFinder)
func (*Client) UpdateSingleIssue ¶
func (*Client) UpdateSingleIssueWithThrottling ¶
type FifoQueueProducer ¶
Click to show internal directories.
Click to hide internal directories.