storagecodec

package
v7.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package storagecodec owns Floret's internal backend key and value encoding.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeEnvelope

func DecodeEnvelope(encoded []byte, kind string) ([]byte, error)

DecodeEnvelope validates and returns one exact domain payload.

func EncodeEnvelope

func EncodeEnvelope(kind string, payload []byte) ([]byte, error)

EncodeEnvelope wraps one domain payload in the strict logical value format.

func Tuple

func Tuple(components ...[]byte) []byte

Tuple joins already encoded components into one versioned binary key.

func TupleOrdinal

func TupleOrdinal(value uint64) []byte

TupleOrdinal encodes an ordinal so byte order preserves numeric order.

func TupleString

func TupleString(value string) []byte

TupleString encodes a string component with an explicit length.

Types

This section is empty.

Jump to

Keyboard shortcuts

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