Documentation
¶
Overview ¶
Package seed — one-shot seed helpers for local dev.
Nothing in this package runs automatically; callers must opt in by (a) importing it and (b) setting COMMERCE_SEED_LIQUIDITY_DEV=1. Production deployments MUST NOT run seeds — tenant rows in prod are created through the admin API at deploy time, with full audit trail.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SeedLiquidityDev ¶
SeedLiquidityDev creates the Liquidity tenant row with devnet hostnames iff the gate env var is set. It is idempotent: a second call when the tenant already exists returns nil.
Usage (from commerced main, only after store.New succeeds):
if err := seed.SeedLiquidityDev(s); err != nil {
log.Fatal(err)
}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.