ledgercompat

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package ledgercompat projects neutral metering facts onto the legacy token ledger record. It lives outside internal/core/metering/aggregate so the neutral reduction closure stays provider-neutral: aggregate and billing must not transitively import legacy persistence or canonical wire types (requirement 15.1). Money is intentionally omitted (token ledger is token-only); callers must keep money on the metering journal (requirement 13.3, 17.1, 17.4).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProjectLedgerRecord

func ProjectLedgerRecord(f metering.Fact) (ledger.Record, bool, error)

ProjectLedgerRecord maps a representable metering fact onto a legacy token ledger record. Money is intentionally omitted (token ledger is token-only); callers must keep money on the metering journal (requirement 13.3, 17.1, 17.4).

Types

This section is empty.

Jump to

Keyboard shortcuts

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