batchrewrite

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: MIT Imports: 5 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupFile

func CleanupFile(ctx context.Context, files FileDeleter, providerType, fileID, logMessage string, attrs ...any) bool

CleanupFile deletes a temporary rewritten batch input file. It returns true only when a non-empty file id was deleted successfully.

func MergeEndpointHints

func MergeEndpointHints(left, right map[string]string) map[string]string

MergeEndpointHints returns a fresh map containing left hints overwritten by right hints. It preserves nil when both inputs are empty.

func RecordResult

func RecordResult(ctx context.Context, result *core.BatchRewriteResult)

RecordResult stores rewrite metadata produced by an explicit batch preparer.

Types

type FileDeleter

type FileDeleter interface {
	DeleteFile(ctx context.Context, providerType, id string) (*core.FileDeleteResponse, error)
}

FileDeleter is the native file API surface needed to remove temporary batch input files created during request rewriting.

Jump to

Keyboard shortcuts

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