seed

package
v0.19.905 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Params

type Params struct {
	fx.In

	L             *zap.Logger
	DB            *gorm.DB `name:"psql"`
	AcctClient    *account.Client
	QueueClient   *queueclient.Client
	EmitterClient *emitterclient.Client
}

type Seeder

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

func New

func New(params Params) *Seeder

func (*Seeder) EnsureAccount

func (s *Seeder) EnsureAccount(ctx context.Context, t *testing.T) context.Context

func (*Seeder) EnsureCronEmitter

func (s *Seeder) EnsureCronEmitter(ctx context.Context, t *testing.T, queueID string, sig signal.Signal) *app.QueueEmitter

func (*Seeder) EnsureOrg

func (s *Seeder) EnsureOrg(ctx context.Context, t *testing.T) context.Context

func (*Seeder) EnsureQueue

func (s *Seeder) EnsureQueue(ctx context.Context, t *testing.T) *app.Queue

func (*Seeder) EnsureScheduledEmitter

func (s *Seeder) EnsureScheduledEmitter(ctx context.Context, t *testing.T, queueID string, sig signal.Signal, scheduledAt time.Time) *app.QueueEmitter

Jump to

Keyboard shortcuts

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