10 lines
314 B
Go
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
|
|
}
|