William Petit
e66938f1d3
All checks were successful
Cadoles/bouncer/pipeline/head This commit looks good
17 lines
335 B
Go
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
|
|
}
|