taskedge

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateRequest

type CreateRequest struct {
	JobID      string `json:"job_id"`
	FromTaskID string `json:"from_task_id"`
	ToTaskID   string `json:"to_task_id"`
}

type ListRequest

type ListRequest struct {
	JobID      string
	FromTaskID string
	ToTaskID   string
	OrderBy    []string
	Limit      uint64
	Offset     uint64
}

type TaskEdge

type TaskEdge interface {
	WithDatabase(*gorm.DB) TaskEdge
	List(*ListRequest) (models.TaskEdges, error)
	Create(*CreateRequest) (*models.TaskEdge, error)
}

func Service

func Service(ctx context.Context) TaskEdge

func ServiceWithDB

func ServiceWithDB(ctx context.Context, conn *gorm.DB) TaskEdge

ServiceWithDB creates a TaskEdge service backed by the supplied database connection, bypassing the global db.Connection() singleton. This is used by the local runner to avoid initialising the production database.

Jump to

Keyboard shortcuts

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