store

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package store provides an interface as well as implementations for storing proto messages to various surfaces.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store interface {
	Load(string, proto.Message) error
	Save(string, proto.Message) error
	Delete(string) error
}

func NewEphemeralStore

func NewEphemeralStore() Store

func NewFSStore

func NewFSStore(dir string) (Store, error)

NewFSStore returns a filesystem based store starting at dir. Checks if dir exists by performing os.Stat.

Jump to

Keyboard shortcuts

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