batchrewrite

package
v0.1.56 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2026 License: MIT Imports: 5 Imported by: 0

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