Documentation
¶
Overview ¶
Package slack provides a bounded local view of observed Slack activity. It does not reconstruct Slack unread state or mark conversations read.
Index ¶
- Constants
- func AssetDeclarations() []assets.Declaration
- func DefinitionForVersion(version string) pluginsdk.Definition
- type Handler
- func (h *Handler) EndSession(ctx context.Context, r protocol.SessionEndRequest) error
- func (h *Handler) HandleSessionInput(ctx context.Context, r protocol.SessionInputRequest) (protocol.SessionInputResult, error)
- func (h *Handler) Health(context.Context) protocol.HealthResult
- func (h *Handler) InvokeOperation(ctx context.Context, request protocol.OperationRequest) (protocol.OperationResult, error)
- func (h *Handler) ReplaceInstances(ctx context.Context, instances []protocol.Instance) error
- func (h *Handler) Shutdown(ctx context.Context) error
- func (h *Handler) StartSession(ctx context.Context, r protocol.SessionStartRequest) error
- type Host
Constants ¶
const ( ChannelSummary = "summary" ChannelAttention = "attention" ChannelConnection = "connection" ChannelLive = "live" )
const PluginID = "dev.bsbctl.slack"
Variables ¶
This section is empty.
Functions ¶
func AssetDeclarations ¶
func AssetDeclarations() []assets.Declaration
AssetDeclarations describes the official Slack mark packaged with this plugin.
func DefinitionForVersion ¶
func DefinitionForVersion(version string) pluginsdk.Definition
DefinitionForVersion binds the resident collector and exact foreground panel.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler owns up to eight independent human workspace connections.
func (*Handler) EndSession ¶
func (*Handler) HandleSessionInput ¶
func (h *Handler) HandleSessionInput(ctx context.Context, r protocol.SessionInputRequest) (protocol.SessionInputResult, error)
func (*Handler) Health ¶
func (h *Handler) Health(context.Context) protocol.HealthResult
Health reports content-free collector health, including failed persistence.
func (*Handler) InvokeOperation ¶
func (h *Handler) InvokeOperation(ctx context.Context, request protocol.OperationRequest) (protocol.OperationResult, error)
InvokeOperation reads bounded local snapshots and never calls Slack.
func (*Handler) ReplaceInstances ¶
ReplaceInstances validates the whole set before canceling any current worker. Identical live generations retain their state, connection and dedup window.
func (*Handler) Shutdown ¶
Shutdown cancels intake and joins all owned receiver and reducer goroutines.
func (*Handler) StartSession ¶
type Host ¶
type Host interface {
Log(context.Context, protocol.LogNotification) error
SaveCheckpoint(context.Context, protocol.CheckpointRequest) error
PublishObservation(context.Context, protocol.Observation) error
WithdrawObservation(context.Context, protocol.WithdrawRequest) error
BeginSessionExecution(context.Context, protocol.SessionExecutionRequest) error
CompleteSession(context.Context, protocol.CompleteSessionRequest) error
}
Host supplies metadata, observations, and exact-session execution boundaries.