bouncer/internal/queue/repository.go
William Petit d56a3c6f5e
All checks were successful
Cadoles/bouncer/pipeline/head This commit looks good
feat: initial commit
2023-05-21 18:07:34 +02:00

10 lines
314 B
Go

package queue
import "context"
type Repository interface {
IsInQueue(ctx context.Context, queueName string, sessionId string) (bool, uint, error)
AddToQueue(ctx context.Context, queueName string, sessionId string) (uint, error)
RemoveFromQueue(ctx context.Context, queueName string, sessionId string) error
}