Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) Doctor(ctx context.Context) (Diagnostics, error)
- func (c *Client) HandleEventsAPIEvent(ctx context.Context, st *store.Store, workspaceID string, ...) error
- func (c *Client) Sync(ctx context.Context, st *store.Store, opts SyncOptions) error
- func (c *Client) Tail(ctx context.Context, st *store.Store, workspaceID string, ...) error
- func (c *Client) WithIncludeDMs(include bool) *Client
- func (c *Client) WithLogger(logger *slog.Logger) *Client
- type Diagnostics
- type SyncOptions
Constants ¶
View Source
const ( SourceUser = "api-user" SourceBot = "api-bot" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewWithOptions ¶
func (*Client) HandleEventsAPIEvent ¶
func (c *Client) HandleEventsAPIEvent(ctx context.Context, st *store.Store, workspaceID string, event slackevents.EventsAPIEvent) error
func (*Client) WithIncludeDMs ¶
type Diagnostics ¶
type Diagnostics struct {
BotConfigured bool `json:"bot_configured"`
AppConfigured bool `json:"app_configured"`
UserConfigured bool `json:"user_configured"`
ThreadCoverage string `json:"thread_coverage"`
DMsIncluded bool `json:"dms_included"`
DMsMissingScope string `json:"dms_missing_scope,omitempty"`
BotAuthTeamID string `json:"bot_auth_team_id,omitempty"`
BotAuthTeam string `json:"bot_auth_team,omitempty"`
UserAuthAvailable bool `json:"user_auth_available"`
UserAuthError string `json:"user_auth_error,omitempty"`
AppTailAvailable bool `json:"app_tail_available"`
}
Click to show internal directories.
Click to hide internal directories.