Documentation ¶
Index ¶
- func DeleteWorker(ctx context.Context, tx gorpmapper.SqlExecutorWithTx, w sdk.V2Worker) error
- func Insert(ctx context.Context, tx gorpmapper.SqlExecutorWithTx, w *sdk.V2Worker) error
- func LoadAllWorker(ctx context.Context, db gorp.SqlExecutor) ([]sdk.V2Worker, error)
- func LoadAllWorkersByHatcheryID(ctx context.Context, db gorp.SqlExecutor, hatcheryID string) ([]sdk.V2Worker, error)
- func LoadByConsumerID(ctx context.Context, db gorp.SqlExecutor, authConsumerID string) (*sdk.V2Worker, error)
- func LoadByID(ctx context.Context, db gorp.SqlExecutor, workerID string, ...) (*sdk.V2Worker, error)
- func LoadDeadWorkers(ctx context.Context, db gorp.SqlExecutor, timeout float64, status []string) ([]sdk.V2Worker, error)
- func LoadWorkerByName(ctx context.Context, db gorp.SqlExecutor, workerName string, ...) (*sdk.V2Worker, error)
- func LoadWorkerByStatus(ctx context.Context, db gorp.SqlExecutor, status string) ([]sdk.V2Worker, error)
- func RegisterWorker(ctx context.Context, db gorpmapper.SqlExecutorWithTx, ...) (*sdk.V2Worker, error)
- func Update(ctx context.Context, tx gorpmapper.SqlExecutorWithTx, w *sdk.V2Worker) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteWorker ¶ added in v0.53.1
func DeleteWorker(ctx context.Context, tx gorpmapper.SqlExecutorWithTx, w sdk.V2Worker) error
func Insert ¶
func Insert(ctx context.Context, tx gorpmapper.SqlExecutorWithTx, w *sdk.V2Worker) error
func LoadAllWorker ¶
func LoadAllWorkersByHatcheryID ¶ added in v0.53.1
func LoadByConsumerID ¶
func LoadByID ¶
func LoadByID(ctx context.Context, db gorp.SqlExecutor, workerID string, opts ...gorpmapping.GetOptionFunc) (*sdk.V2Worker, error)
func LoadDeadWorkers ¶
func LoadWorkerByName ¶
func LoadWorkerByName(ctx context.Context, db gorp.SqlExecutor, workerName string, opts ...gorpmapping.GetOptionFunc) (*sdk.V2Worker, error)
LoadWorkerByName load worker
func LoadWorkerByStatus ¶
func RegisterWorker ¶
func RegisterWorker(ctx context.Context, db gorpmapper.SqlExecutorWithTx, spawnArgs hatchery.SpawnArgumentsJWTV2, hatch sdk.Hatchery, workerConsumer *sdk.AuthHatcheryConsumer, registrationForm sdk.WorkerRegistrationForm) (*sdk.V2Worker, error)
RegisterWorker Register new worker
func Update ¶
func Update(ctx context.Context, tx gorpmapper.SqlExecutorWithTx, w *sdk.V2Worker) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.