package redis import ( "context" "forge.cadoles.com/cadoles/bouncer/internal/queue" "github.com/redis/go-redis/v9" ) type Repository struct { client redis.UniversalClient } // GetQueue implements queue.Repository func (*Repository) GetQueue(ctx context.Context, name string) (int, int, error) { panic("unimplemented") } // CreateQueue implements queue.Repository func (*Repository) CreateQueue(ctx context.Context, name string, capacity int) error { panic("unimplemented") } // CreateToken implements queue.Repository func (*Repository) CreateToken(ctx context.Context, name string) (string, int, error) { panic("unimplemented") } // DeleteQueue implements queue.Repository func (*Repository) DeleteQueue(ctx context.Context, name string) error { panic("unimplemented") } // GetTokenPosition implements queue.Repository func (*Repository) GetTokenPosition(ctx context.Context, name string, token string) (int, int, error) { panic("unimplemented") } // RefreshQueue implements queue.Repository func (*Repository) RefreshQueue(ctx context.Context, name string) (int, int, error) { panic("unimplemented") } // RemoveToken implements queue.Repository func (*Repository) RemoveToken(ctx context.Context, name string, token string) error { panic("unimplemented") } // TouchToken implements queue.Repository func (*Repository) TouchToken(ctx context.Context, name string, token string) (int, error) { panic("unimplemented") } // UpdateQueue implements queue.Repository func (*Repository) UpdateQueue(ctx context.Context, name string, capacity int) error { panic("unimplemented") } func NewRepository(client redis.UniversalClient) *Repository { return &Repository{ client: client, } } var _ queue.Repository = &Repository{}