queueManager

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcquireLock

func AcquireLock(ctx context.Context, lockId, namespace string, queueId string, instance int) pb.Errors

Acquire lock if client is next in queue

func GetQueuePosition

func GetQueuePosition(ctx context.Context, lockId, namespace string, queueId string, instance int) (int64, pb.Errors)

Get queue position for a client

func ReleaseLock

func ReleaseLock(ctx context.Context, lockId, namespace string, instance int) pb.Errors

Release lock and set the next client

func ScheduleLock

func ScheduleLock(ctx context.Context, lockId, namespace string, clientID uuid.UUID, instance int) (string, pb.Errors)

Schedules a client id to a lock queue

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL