blob_library

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeBlobFormat

func MakeBlobFormat[
	BLOB any,
	BLOB_PTR interfaces.Ptr[BLOB],
](
	decoder interfaces.DecoderFromReader[BLOB_PTR],
	encoder interfaces.EncoderToWriter[BLOB_PTR],
	blobReader mad_domain_interfaces.BlobReaderFactory,
) mad_domain_interfaces.Format[BLOB, BLOB_PTR]

func MakeSavedBlobFormatter

func MakeSavedBlobFormatter(
	blobReaderFactory mad_domain_interfaces.BlobReaderFactory,
) savedBlobFormatter

Types

type Library

type Library[
	BLOB any,
	BLOB_PTR interfaces.Ptr[BLOB],
] struct {
	mad_domain_interfaces.Format[BLOB, BLOB_PTR]
	// contains filtered or unexported fields
}

func MakeBlobStore

func MakeBlobStore[
	BLOB any,
	BLOB_PTR interfaces.Ptr[BLOB],
](
	envRepo env_repo.Env,
	format mad_domain_interfaces.Format[BLOB, BLOB_PTR],
	resetFunc func(BLOB_PTR),
) (blobStore *Library[BLOB, BLOB_PTR])

func (*Library[BLOB, BLOB_PTR]) GetBlob

func (library *Library[BLOB, BLOB_PTR]) GetBlob(
	blobId mad_domain_interfaces.MarklId,
) (blobPtr BLOB_PTR, repool interfaces.FuncRepool, err error)

func (*Library[BLOB, BLOB_PTR]) PutBlob

func (library *Library[BLOB, BLOB_PTR]) PutBlob(blob BLOB_PTR)

func (*Library[BLOB, BLOB_PTR]) SaveBlobText

func (library *Library[BLOB, BLOB_PTR]) SaveBlobText(
	blob BLOB_PTR,
) (digest mad_domain_interfaces.MarklId, n int64, err error)

TODO re-evaluate this strategy

Jump to

Keyboard shortcuts

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