query

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package query contains the use case for querying workflows.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

type Input struct {
	Name     string
	Status   []string
	Labels   map[string]string
	Page     int
	PageSize int
}

Input represents the input for the query use case.

type Output

type Output struct {
	Workflows  []WorkflowSummary
	TotalCount int
	Page       int
	PageSize   int
}

Output represents the output of the query use case.

type UseCase

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

UseCase handles workflow queries.

func New

func New(repo workflow.Repository) *UseCase

New creates a new query use case.

func (*UseCase) Execute

func (uc *UseCase) Execute(ctx context.Context, input Input) (*Output, error)

Execute queries workflows based on filters.

type WorkflowSummary

type WorkflowSummary struct {
	ID          string
	Name        string
	Status      string
	SubmittedAt time.Time
	Start       time.Time
	End         time.Time
}

WorkflowSummary represents a summary of a workflow for listing.

Jump to

Keyboard shortcuts

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