config

package
v0.1.0-round1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package config centralizes strict runtime configuration for SyncBase binaries.

Index

Constants

View Source
const (
	// ModelSHA256 pins the only accepted multilingual-E5 model artifact.
	ModelSHA256 = "ca456c06b3a9505ddfd9131408916dd79290368331e7d76bb621f1cba6bc8665"
	// TokenizerSHA256 pins the only accepted multilingual-E5 tokenizer artifact.
	TokenizerSHA256 = "0b44a9d7b51c3c62626640cda0e2c2f70fdacdc25bbbd68038369d14ebdf4c39"
	// ONNXRuntimeID identifies the platform-independent inference runtime in the processing profile.
	ONNXRuntimeID = "onnxruntime-1.26.0"
)

Variables

This section is empty.

Functions

func Bool

func Bool(name string, fallback bool) (bool, error)

Bool parses an environment boolean or returns its fallback when empty.

func CSV

func CSV(name string, fallback []string) []string

CSV returns trimmed, non-empty values from a comma-separated environment value.

func Duration

func Duration(name string, fallback time.Duration) (time.Duration, error)

Duration parses an environment duration or returns its fallback when empty.

func Profile

func Profile() (knowledge.Profile, string, error)

Profile builds the immutable processing profile from pinned runtime constants.

func Required

func Required(name string) (string, error)

Required returns a non-empty environment value or an error.

func RuntimeLibrarySHA256

func RuntimeLibrarySHA256() (string, error)

RuntimeLibrarySHA256 returns the pinned ONNX Runtime shared-library digest for the current process architecture.

func Value

func Value(name, fallback string) string

Value returns an environment value or its fallback when empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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