seeder

package
v0.57.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: AGPL-3.0 Imports: 3 Imported by: 1 module, 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearRegistry

func ClearRegistry()

ClearRegistry clears the global seeder registry (useful for testing)

func GetSeeder

func GetSeeder(name string) seeder.Seeder

GetSeeder retrieves a seeder from the global registry

func GetSeeders

func GetSeeders() []seeder.Seeder

GetSeeders retrieves all seeders from the global registry

func RegisterSeeder

func RegisterSeeder(name string, s seeder.Seeder)

RegisterSeeder registers a seeder in the global registry

Types

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

Runner implements the seeder.Facade interface

func NewRunner

func NewRunner() *Runner

NewRunner creates a new seeder runner

func (*Runner) Call

func (r *Runner) Call(seeders []seeder.Seeder) error

Call executes the specified seeder(s)

func (*Runner) CallOnce

func (r *Runner) CallOnce(seeders []seeder.Seeder) error

CallOnce executes the specified seeder(s) only once

func (*Runner) GetSeeder

func (r *Runner) GetSeeder(name string) seeder.Seeder

GetSeeder gets a seeder instance from the seeders

func (*Runner) GetSeeders

func (r *Runner) GetSeeders() []seeder.Seeder

GetSeeders gets all the seeders

func (*Runner) Register

func (r *Runner) Register(seeders []seeder.Seeder)

Register registers seeders

func (*Runner) ResetCallOnce

func (r *Runner) ResetCallOnce()

ResetCallOnce clears the CallOnce tracking (useful for testing)

Jump to

Keyboard shortcuts

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