Documentation
¶
Index ¶
- Constants
- func CheckSubmissionExist(ctx context.Context, readModel ReadModel, workspaceID, id string) *errors.AppError
- type CheckHandler
- type CheckQuery
- type Entity
- type ExposedOptions
- type InOutMaterial
- type ListHandler
- type ListQuery
- type ListSubmissionsFilter
- type Queries
- type ReadModel
- type Status
- type SubmissionItem
- type WorkflowVersion
Constants ¶
View Source
const ( OrderByName = "Name" OrderByStartTime = "StartTime" )
Field for order.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CheckHandler ¶
type CheckHandler interface {
Handle(context.Context, *CheckQuery) (bool, error)
}
func NewCheckHandler ¶
func NewCheckHandler(grpcFactory grpc.Factory, readModel ReadModel) CheckHandler
type CheckQuery ¶
type ExposedOptions ¶
type ExposedOptions struct {
ReadFromCache bool
}
type InOutMaterial ¶
type ListHandler ¶
func NewListHandler ¶
func NewListHandler(grpcFactory grpc.Factory, submissionReadModel ReadModel) ListHandler
type ListQuery ¶
type ListQuery struct { WorkspaceID string Pg *utils.Pagination Filter *ListSubmissionsFilter }
type ListSubmissionsFilter ¶
type Queries ¶
type Queries struct { List ListHandler Check CheckHandler }
type ReadModel ¶
type ReadModel interface { ListSubmissions(ctx context.Context, workspaceID string, pg *utils.Pagination, filter *ListSubmissionsFilter) ([]*SubmissionItem, error) CountSubmissions(ctx context.Context, workspaceID string, filter *ListSubmissionsFilter) (int, error) }
type SubmissionItem ¶
type SubmissionItem struct { ID string Name string Description *string Type string Status string StartTime int64 FinishTime *int64 Duration int64 WorkflowID string WorkflowVersionID string RunStatus Status Entity *Entity ExposedOptions ExposedOptions InOutMaterial *InOutMaterial WorkspaceID string }
type WorkflowVersion ¶
Click to show internal directories.
Click to hide internal directories.