log

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append

func Append(e Event) error

Append writes an event to the current month's JSONL file.

func LogDir

func LogDir() string

Types

type Event

type Event struct {
	Action    string            `json:"action"`
	Repo      string            `json:"repo"`
	Branch    string            `json:"branch"`
	Timestamp time.Time         `json:"timestamp"`
	Metadata  map[string]string `json:"metadata,omitempty"`
}

func Read

func Read(opts ReadOpts) ([]Event, error)

Read returns events matching the given filters, most recent first.

type ReadOpts

type ReadOpts struct {
	Repo   string
	Branch string
	Since  time.Time
	Limit  int
}

Jump to

Keyboard shortcuts

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