localstore

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package localstore persists the local-first jiratui working set.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Save

func Save(cfg config.Config, state State) error

Save writes the cached working set atomically enough for small local state.

Types

type State

type State struct {
	ProjectName string             `json:"project_name"`
	Sprint      jira.Sprint        `json:"sprint"`
	Issues      []jira.Issue       `json:"issues"`
	Draft       service.DailyDraft `json:"draft"`
	SavedAt     time.Time          `json:"saved_at"`
}

State is the cached local working set used before Jira responds.

func Load

func Load(cfg config.Config) (State, bool, error)

Load reads the cached working set. Missing cache is not an error.

Jump to

Keyboard shortcuts

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