Documentation ¶
Index ¶
- func GetStorageService(ctx types.Context, name string) types.StorageService
- func Init(ctx types.Context, config gofig.Config) error
- func StorageServices(ctx types.Context) <-chan types.StorageService
- func TaskEnqueue(ctx types.Context, run types.TaskRunFunc, schema []byte) *types.Task
- func TaskInspect(ctx types.Context, taskID int) *types.Task
- func TaskTrack(ctx types.Context) *types.Task
- func TaskWait(ctx types.Context, taskID int)
- func TaskWaitAll(ctx types.Context, taskIDs ...int)
- func TaskWaitAllC(ctx types.Context, taskIDs ...int) <-chan int
- func TaskWaitC(ctx types.Context, taskID int) <-chan int
- func Tasks(ctx types.Context) <-chan *types.Task
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetStorageService ¶
func GetStorageService( ctx types.Context, name string) types.StorageService
GetStorageService returns the storage service specified by the given name; otherwise a nil value is returned if no such service exists.
func StorageServices ¶
func StorageServices(ctx types.Context) <-chan types.StorageService
StorageServices returns a channel on which all the storage services are received.
func TaskEnqueue ¶
TaskEnqueue enqueues a task for execution.
func TaskInspect ¶
TaskInspect returns the task with the specified ID.
func TaskWaitAll ¶
TaskWaitAll blocks until all the specified task are complete.
func TaskWaitAllC ¶
TaskWaitAllC returns a channel that is closed only when all the specified tasks are completed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.