chore: add interface description
Some checks failed
Cadoles/bouncer/pipeline/head There was a failure building this commit

This commit is contained in:
wpetit 2024-06-05 12:52:01 +02:00
parent 2952f68720
commit c7ac331b10

View File

@ -10,7 +10,10 @@ type Status struct {
}
type Adapter interface {
// Touch updates the session TTL and returns its current rank
Touch(ctx context.Context, queueName string, sessionId string) (int64, error)
// Status returns the queue current status
Status(ctx context.Context, queueName string) (*Status, error)
// Refresh forces a refresh of the queue, taking into account the given TTL for sessions
Refresh(ctx context.Context, queueName string, keepAlive time.Duration) error
}