bouncer/internal/queue/repository.go

10 lines
314 B
Go
Raw Normal View History

2023-04-24 20:52:12 +02:00
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
}