seeder

package
v1.14.9 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 0 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Facade

type Facade interface {
	// Register registers seeders.
	Register(seeders []Seeder)
	// GetSeeder gets a seeder instance from the seeders.
	GetSeeder(name string) Seeder
	// GetSeeders gets all the seeders
	GetSeeders() []Seeder
	// Call executes the specified seeder(s).
	Call(seeders []Seeder) error
	// CallOnce executes the specified seeder(s) only once.
	CallOnce(seeders []Seeder) error
}

type Seeder

type Seeder interface {
	// Signature the unique signature of the seeder.
	Signature() string
	// Run executes the seeder logic.
	Run() error
}

Jump to

Keyboard shortcuts

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