utils

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enqueue

func Enqueue(ctx context.Context, items []TaskConstructor) error

Enqueue enqueues the tasks produced by the given task constructors.

func LinkObjects

func LinkObjects(ctx context.Context, db *bun.DB, items []LinkFunction) error

LinkObjects links objects by using the provided LinkFunction items.

Types

type LinkFunction

type LinkFunction func(ctx context.Context, db *bun.DB) error

LinkFunction is a function, which establishes relationships between models.

type TaskConstructor

type TaskConstructor func() *asynq.Task

TaskConstructor is a function which creates and returns a new asynq.Task.

Jump to

Keyboard shortcuts

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