persistence

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadEnvelopeOrLegacy

func ReadEnvelopeOrLegacy(data []byte, schema string, out interface{}) (int, bool, error)

func WriteAtomic

func WriteAtomic(path string, value interface{}) error

func WriteBytesAtomic

func WriteBytesAtomic(path string, raw []byte) error

func WriteEnvelopeAtomic

func WriteEnvelopeAtomic(path, schema string, version int, payload interface{}) error

Types

type Envelope

type Envelope struct {
	Schema  string          `json:"schema"`
	Version int             `json:"version"`
	Data    json.RawMessage `json:"data"`
}

Jump to

Keyboard shortcuts

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