chore: add interface description
Cadoles/bouncer/pipeline/head There was a failure building this commit
Details
Cadoles/bouncer/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
2952f68720
commit
c7ac331b10
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue