file

package
v0.1.53 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: Apache-2.0 Imports: 7 Imported by: 0 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 file is a notification channel that appends each notification as one JSON line (JSONL) to a local file named by NOTIFY_FILE. It is a self-registering plug-in for the notify registry: importing it for its init() is all it takes to add file delivery — no change to the send path. Zero security surface: a plain local append the daemon owner opted into via an env var, never reachable over HTTP.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notifier

type Notifier struct {
	Path string
	// contains filtered or unexported fields
}

Notifier appends each notification to Path as one JSON object per line. Sends are serialized by a mutex so concurrent turns can't interleave a half-written line. The file is created if absent (0600).

func (*Notifier) Notify

func (f *Notifier) Notify(_ context.Context, n agent.Notification) error

Jump to

Keyboard shortcuts

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