feat: refactor layers registration
All checks were successful
Cadoles/bouncer/pipeline/head This commit looks good
All checks were successful
Cadoles/bouncer/pipeline/head This commit looks good
This commit is contained in:
16
internal/proxy/director/layer/queue/adapter.go
Normal file
16
internal/proxy/director/layer/queue/adapter.go
Normal file
@ -0,0 +1,16 @@
|
||||
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
|
||||
}
|
Reference in New Issue
Block a user