Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var OnTask struct { Created string Ready string Received string Finished string Cancelled string }
View Source
var ResourceStatuses struct { DoesNotExist string Allocated string Ready string }
View Source
var TaskStatuses struct { Initialized string Ready string Cancelled string Received string Finished string }
View Source
var TaskSubStatuses struct { OK string Failed string }
Functions ¶
This section is empty.
Types ¶
type AbstractSystem ¶
type BrokerEvent ¶
type ResourceDB ¶
type System ¶
type System struct {
// contains filtered or unexported fields
}
func (System) Resources ¶
func (system System) Resources() ResourceDB
type TaskDB ¶
type TaskDB interface { storage.Storage Insert(ctx context.Context, tasks []Task) error Delete(ctx context.Context, ids []string) error ByIDs(ctx context.Context, ids []string) ([]Task, error) UpdateByIDs(ctx context.Context, ids []string, properties map[string]any) error GetWithProperties(ctx context.Context, propertiesToValues map[string][]any) ([]Task, error) UpdateWithProperties(ctx context.Context, propertiesToValues map[string][]any, newProperties map[string]any) (updatedDocs int, err error) }
Click to show internal directories.
Click to hide internal directories.