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

state

package
v0.3.0 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: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Record

type Record struct {
	Version  int                        `json:"version"`
	App      string                     `json:"app"`
	Env      string                     `json:"env"`
	Tag      string                     `json:"tag"`
	State    release.State              `json:"state"`
	Messages map[string]json.RawMessage `json:"messages,omitempty"`
}

type Store

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

func New

func New(f forge.Forge, repo string, link func(Record) string) *Store

func (*Store) Load

func (s *Store) Load(ctx context.Context, ch forge.Change, app string) (Record, bool, error)

func (*Store) Update

func (s *Store) Update(ctx context.Context, ch forge.Change, app string, apply func(*Record)) (Record, error)

Jump to

Keyboard shortcuts

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