Help us shape the future of Go! Take the 2026 Go Developer Survey

blog

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Timestamp time.Time `json:"timestamp"`
	Role      string    `json:"role"`
	Type      EntryType `json:"type"`
	Target    string    `json:"target,omitempty"`
	ID        string    `json:"id,omitempty"`
	InReplyTo string    `json:"in_reply_to,omitempty"`
	Message   string    `json:"message"`
	CommitSHA string    `json:"commit_sha,omitempty"`
	Model     string    `json:"model,omitempty"`
}

Entry is one line of a ticket's append-only blackboard log.

func NewEntry

func NewEntry(role string, typ EntryType, message string) Entry

func ReadAll

func ReadAll(path string) ([]Entry, error)

ReadAll returns every entry in the log at path, in append order. A missing file is treated as an empty log, not an error, since a not-yet-created ticket log is a normal state.

type EntryType

type EntryType string
const (
	TypeStatus          EntryType = "STATUS"
	TypeFinding         EntryType = "FINDING"
	TypeBlocker         EntryType = "BLOCKER"
	TypeQuestion        EntryType = "QUESTION"
	TypeAnswer          EntryType = "ANSWER"
	TypeTimeout         EntryType = "TIMEOUT"
	TypeBlockedToolCall EntryType = "BLOCKED_TOOL_CALL"
	TypeResolved        EntryType = "RESOLVED"
)

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

Writer is the single writer for a ticket's blackboard log. All agent processes append through this type (via the observer or `golem log emit`), never by writing the file directly, so concurrent appends never interleave or corrupt a line.

func NewWriter

func NewWriter(path string) (*Writer, error)

func (*Writer) Append

func (w *Writer) Append(e Entry) error

func (*Writer) Close

func (w *Writer) Close() error

Jump to

Keyboard shortcuts

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