slack

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2026 License: GPL-3.0 Imports: 27 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
const (
	ChannelSummary    = "summary"
	ChannelAttention  = "attention"
	ChannelConnection = "connection"
	ChannelLive       = "live"
)
View Source
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 New

func New(host Host) *Handler

New constructs a collector without starting provider I/O.

func (*Handler) EndSession

func (h *Handler) EndSession(ctx context.Context, r protocol.SessionEndRequest) error

func (*Handler) HandleSessionInput

func (*Handler) Health

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

func (h *Handler) ReplaceInstances(ctx context.Context, instances []protocol.Instance) error

ReplaceInstances validates the whole set before canceling any current worker. Identical live generations retain their state, connection and dedup window.

func (*Handler) Shutdown

func (h *Handler) Shutdown(ctx context.Context) error

Shutdown cancels intake and joins all owned receiver and reducer goroutines.

func (*Handler) StartSession

func (h *Handler) StartSession(ctx context.Context, r protocol.SessionStartRequest) error

type Host

Host supplies metadata, observations, and exact-session execution boundaries.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL