seed

package
v1.40.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: MIT Imports: 4 Imported by: 0

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

func SeedLiquidityDev(s *store.Store) error

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.

Jump to

Keyboard shortcuts

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