api

package
v1.48.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 85 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRoute

func RegisterRoute(fn RouteFn)

RegisterRoute wires an additional route function. The parent api.Route invokes every registered function after its own wiring is done. Consumers who want the route must blank-import the sub-module (e.g. `import _ "github.com/hanzoai/commerce/luxfi/cevm/api"`).

func Route

func Route(api zip.Router)

Types

type RouteFn

type RouteFn func(r zip.Router, args ...zip.Handler)

RouteFn is an optional side-car wirer for API routes that don't ship in-tree — typically sub-modules like luxfi/cevm which would otherwise transitively pull heavy deps (geth, warp, etc.) into consumers that don't need them.

Directories

Path Synopsis
Package account — login deprecated.
Package account — login deprecated.
Package b2b wires the B2B commerce HTTP surface: companies, employees (with their spending headroom), quotes (accept/reject + message thread), and spend-approvals.
Package b2b wires the B2B commerce HTTP surface: companies, employees (with their spending headroom), quotes (accept/reject + message thread), and spend-approvals.
Package catalog is the HTTP surface for the platform product catalog — the CMS source-of-truth for a brand's OWN products (Models, Vector, KMS, …) that docs.<brand>, the console sidebar, and pricing derive from.
Package catalog is the HTTP surface for the platform product catalog — the CMS source-of-truth for a brand's OWN products (Models, Vector, KMS, …) that docs.<brand>, the console sidebar, and pricing derive from.
cdn
Package costs is commerce's vendor-cost / COGS surface — the mirror of the revenue/usage billing package.
Package costs is commerce's vendor-cost / COGS surface — the mirror of the revenue/usage billing package.
Package dashv2 — login deprecated.
Package dashv2 — login deprecated.
Package exchange wires the order-exchange HTTP surface: CRUD on exchanges plus confirm/cancel transitions.
Package exchange wires the order-exchange HTTP surface: CRUD on exchanges plus confirm/cancel transitions.
Package giftcard is the HTTP surface for gift cards: base CRUD via rest plus money actions (redeem / balance / void).
Package giftcard is the HTTP surface for gift cards: base CRUD via rest plus money actions (redeem / balance / void).
Package metrics is the platform SaaS-operations god-view: the whole business's money, computed IN commerce (the system of record for subscriptions + the usage ledger) so admin.hanzo.ai only renders — never re-aggregates client-side and never calls Stripe directly.
Package metrics is the platform SaaS-operations god-view: the whole business's money, computed IN commerce (the system of record for subscriptions + the usage ledger) so admin.hanzo.ai only renders — never re-aggregates client-side and never calls Stripe directly.
Package producttaxonomy is the HTTP surface for the product-builder taxonomy: options (+values), categories (hierarchical), tags, types, and the return/refund reason lookups.
Package producttaxonomy is the HTTP surface for the product-builder taxonomy: options (+values), categories (hierarchical), tags, types, and the return/refund reason lookups.

Jump to

Keyboard shortcuts

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