bouncer/internal/proxy/director/layer/queue/adapter.go
William Petit 8d91f646c2
All checks were successful
Cadoles/bouncer/pipeline/head This commit looks good
feat: refactor layers registration
2023-06-23 17:54:34 -06:00

17 lines
335 B
Go

package queue
import (
"context"
"time"
)
type Status struct {
Sessions int64
}
type Adapter interface {
Touch(ctx context.Context, queueName string, sessionId string) (int64, error)
Status(ctx context.Context, queueName string) (*Status, error)
Refresh(ctx context.Context, queueName string, keepAlive time.Duration) error
}