blob

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Overview

Package blob implements the claim-check: a message body larger than the threshold is stored in the blobs object store and the message carries only its name in the Pt-Blob header. It applies uniformly to events, commands and jobs, so every reader resolves bodies the same way.

Index

Constants

View Source
const Header = "Pt-Blob"

Header names the object holding the message body.

Variables

This section is empty.

Functions

func DeleteExec

func DeleteExec(ctx context.Context, in *infra.Infra, execID string) error

DeleteExec removes every blob of an execution (archive garbage collection).

func Offload

func Offload(ctx context.Context, in *infra.Infra, execID string, body []byte, h nats.Header) ([]byte, error)

Offload returns the body to publish: body itself when it fits under the threshold, otherwise an empty body after storing body under "<execID>/<unique>" and setting the header on h.

func Resolve

func Resolve(ctx context.Context, in *infra.Infra, body []byte, h nats.Header) ([]byte, error)

Resolve returns the real body of a message: body itself, or the object named by the header.

Types

This section is empty.

Jump to

Keyboard shortcuts

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