{"modulePath":"github.com/lxdb/bsbctl","version":"v0.3.0","isLatest":true,"isStandardLibrary":false,"goos":"linux","goarch":"amd64","docs":"# package githubnotifications\n\nPackage githubnotifications collects a bounded GitHub notification view.\n\n## Constants\n\n```go\nconst (\n\tPluginID          = \"dev.bsbctl.github-notifications\"\n\tPluginVersion     = \"dev\"\n\tAppID             = \"github-notifications\"\n\tChannelSummary    = \"summary\"\n\tChannelAttention  = \"attention\"\n\tChannelConnection = \"connection\"\n\tChannelLive       = \"live\"\n\tOperationStatus   = \"status\"\n\tOperationItems    = \"items\"\n)\n```\n\n## Variables\n\n```go\nvar ConfigSchema json.RawMessage\n```\n\n```go\nvar ErrStaleNotification = errors.New(\"notification selection is stale\")\n```\nErrStaleNotification rejects an effect whose frozen item version is no longer current.\n\n## Functions\n\n```go\nfunc AssetDeclarations() []assets.Declaration\n```\nAssetDeclarations describes the official GitHub mark packaged with the plugin.\n\n```go\nfunc DefinitionForVersion(version string) pluginsdk.Definition\n```\nDefinitionForVersion binds release metadata to the declared plugin contract.\n\n```go\nfunc ErrorCode(err error) string\n```\nErrorCode returns a content-free stable failure code.\n\n```go\nfunc IsCredentialRejected(err error) bool\n```\nIsCredentialRejected distinguishes confirmed credential rejection from transport or throttling failures.\n\n```go\nfunc RunSetup(ctx context.Context, args []string, stdin io.Reader, stdout, stderr io.Writer, host appsetup.Host) error\n```\nRunSetup configures an installed GitHub Notifications app without exposing provider credential policy to the core CLI.\n\n```go\nfunc ValidateRepositories(repositories []Repository) error\n```\nValidateRepositories checks a bounded optional filter of unique GitHub.com names and public aliases.\n\n## Types\n\n```go\ntype Config struct {\n\tRepositories        []Repository\n\tLabel               string\n\tRearDetails         bool\n\tPollInterval        time.Duration\n\tConfigured          bool\n\tNotificationReasons []string\n}\n```\nConfig contains validated collection and presentation settings.\n\n```go\nfunc DecodeConfig(raw json.RawMessage) (Config, error)\n```\nDecodeConfig accepts an exact empty object or a complete strict configuration.\n\n```go\ntype Handler struct {\n\t// contains filtered or unexported fields\n}\n```\nHandler owns configured workers. New does not perform provider I/O.\n\n```go\nfunc New(host Host) *Handler\n```\nNew constructs the production handler with a package-owned HTTP client.\n\n```go\nfunc (h *Handler) EndSession(ctx context.Context, r protocol.SessionEndRequest) error\n```\n\n```go\nfunc (h *Handler) HandleSessionInput(ctx context.Context, r protocol.SessionInputRequest) (protocol.SessionInputResult, error)\n```\n\n```go\nfunc (h *Handler) Health(context.Context) protocol.HealthResult\n```\n\n```go\nfunc (h *Handler) InvokeOperation(_ context.Context, request protocol.OperationRequest) (protocol.OperationResult, error)\n```\n\n```go\nfunc (h *Handler) ReplaceInstances(ctx context.Context, instances []protocol.Instance) error\n```\n\n```go\nfunc (h *Handler) Shutdown(ctx context.Context) error\n```\n\n```go\nfunc (h *Handler) StartSession(ctx context.Context, r protocol.SessionStartRequest) error\n```\nStartSession binds a panel to an exact observation or launcher; effects require a later input after core has promoted this session.\n\n```go\ntype Host interface {\n\tPublishObservation(context.Context, protocol.Observation) error\n\tSaveCheckpoint(context.Context, protocol.CheckpointRequest) error\n\tBeginSessionExecution(context.Context, protocol.SessionExecutionRequest) error\n\tCompleteSession(context.Context, protocol.CompleteSessionRequest) error\n\tLog(context.Context, protocol.LogNotification) error\n}\n```\nHost is the notification plugin's generation-scoped publication and effect boundary.\n\n```go\ntype Identity struct {\n\tID    int64  `json:\"id\"`\n\tLogin string `json:\"login\"`\n}\n```\nIdentity is the authenticated GitHub user. It is never emitted by plugin queries.\n\n```go\nfunc Authorize(ctx context.Context, client *http.Client, token string, repositories []Repository) (Identity, error)\n```\nAuthorize proves identity, notification capability, and access to each repository using read requests. The borrowed client's transport is preserved; redirects, cookies, and request time are restricted.\n\n```go\ntype Repository struct {\n\tName  string `json:\"name\"`\n\tAlias string `json:\"alias\"`\n}\n```\nRepository optionally selects one source repository and its public-safe display alias.\n\n","path":"github.com/lxdb/bsbctl/plugins/githubnotifications","name":"githubnotifications","synopsis":"Package githubnotifications collects a bounded GitHub notification view.","isRedistributable":true}
