seed

package
v0.58.4 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package seed provisions the deterministic test fixture: two accounts (alpha, beta) and three plaintext API keys (key-alpha, key-alpha2, key-beta). Plaintext keys + org IDs are written to <dir>/{key,org}-*.txt for the test runner to consume by file.

Seed is idempotent: re-running on an already-seeded DB no-ops (orgs found by name, keys regenerated only if the org has none).

Index

Constants

This section is empty.

Variables

View Source
var ErrAlreadySeeded = errors.New("already seeded")

Sentinel for callers that want to detect "already done" — currently unused but useful when the seeder grows.

Functions

func Run

func Run(ctx context.Context, pool *db.Pool, dir string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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