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 ¶
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.