seeder

package
v0.0.0-...-9be93d0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: MIT Imports: 0 Imported by: 0

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

	// All 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 name and signature of the seeder.
	Signature() string

	// Run executes the seeder logic.
	Run() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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