blob

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 EraseExec added in v1.0.1

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

EraseExec removes every blob of an execution that is being deleted, leaving no delete markers behind.

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