Documentation ¶
Index ¶
Constants ¶
View Source
const ( OrderByName = "Name" OrderByStartTime = "StartTime" )
Field for order.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CountRunsResultHandler ¶
type CountRunsResultHandler interface {
Handle(context.Context, *CountRunsResultQuery) (*Status, error)
}
func NewCountRunsResultHandler ¶
func NewCountRunsResultHandler(readModel ReadModel) CountRunsResultHandler
type CountRunsResultQuery ¶
type CountRunsResultQuery struct {
SubmissionID string
}
type ListRunsFilter ¶
type ListRunsHandler ¶
func NewListRunsHandler ¶
func NewListRunsHandler(grpcFactory grpc.Factory, runReadModel ReadModel, submissionReadModel submission.ReadModel) ListRunsHandler
type ListRunsQuery ¶
type ListRunsQuery struct { WorkspaceID string SubmissionID string Pg *utils.Pagination Filter *ListRunsFilter }
type ListTasksHandler ¶
type ListTasksHandler interface {
Handle(context.Context, *ListTasksQuery) ([]*TaskItem, int, error)
}
func NewListTasksHandler ¶
func NewListTasksHandler(grpcFactory grpc.Factory, runReadModel ReadModel, submissionReadModel submission.ReadModel) ListTasksHandler
type ListTasksQuery ¶
type ListTasksQuery struct { WorkspaceID string SubmissionID string RunID string Pg *utils.Pagination }
type Queries ¶
type Queries struct { ListRuns ListRunsHandler ListTasks ListTasksHandler CountRunsResult CountRunsResultHandler }
func NewQueries ¶
type ReadModel ¶
type ReadModel interface { ListAllRunIDs(ctx context.Context, submissionID string) ([]string, error) ListRuns(ctx context.Context, submissionID string, pg *utils.Pagination, filter *ListRunsFilter) ([]*RunItem, error) CountRuns(ctx context.Context, submissionID string, filter *ListRunsFilter) (int, error) ListTasks(ctx context.Context, runID string, pg *utils.Pagination) ([]*TaskItem, error) CountTasks(ctx context.Context, runID string) (int, error) CountRunsResult(ctx context.Context, submissionID string) ([]*StatusCount, error) CountTasksResult(ctx context.Context, runID string) ([]*StatusCount, error) }
Click to show internal directories.
Click to hide internal directories.