diary

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2026 License: MIT Imports: 7 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 {
	ID        string `json:"id"`
	Agent     string `json:"agent"`
	Topic     string `json:"topic"`
	Content   string `json:"content"`
	Timestamp string `json:"timestamp"`
	Date      string `json:"date"`
}

type Store

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

func New

func New(dir string) *Store

func (*Store) Read

func (s *Store) Read(agent string, lastN int) ([]Entry, error)

func (*Store) Write

func (s *Store) Write(agent, content, topic string) (Entry, error)

Jump to

Keyboard shortcuts

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