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

store

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package store provides a durable reference backend. Hosts with an existing run store should implement tasks.Store against that canonical store instead.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

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

func Open

func Open(directory string, maxRecords int) (*File, error)

Open uses a dedicated local directory. Every operation takes a process-safe directory lock. Durability assumes a filesystem honoring rename and fsync.

func (*File) CompareAndSwap

func (s *File) CompareAndSwap(ctx context.Context, owner tasks.Owner, id string, revision uint64, next tasks.Record) error

func (*File) Create

func (s *File) Create(ctx context.Context, record tasks.Record) error

func (*File) Get

func (s *File) Get(ctx context.Context, owner tasks.Owner, id string) (tasks.Record, error)

func (*File) Sweep

func (s *File) Sweep(ctx context.Context, now time.Time) (int, error)

Sweep explicitly discards elapsed-TTL records. It never stops/restarts work. Execution retention and cancellation are owned by the native runtime adapter.

Jump to

Keyboard shortcuts

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