tables

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateQueueEntry

func CreateQueueEntry(svc *dynamodb.DynamoDB, queueName, clientId string, entryTimestamp int64, tableName string, stopHeartBeat chan bool) error

func DeleteQueueEntry

func DeleteQueueEntry(svc *dynamodb.DynamoDB, queueName, clientId string, entryTimestamp int64, tableName string) error

func IsQueueMemberZombie

func IsQueueMemberZombie(lastUpdated int64) bool

func WaitForTurn

func WaitForTurn(svc *dynamodb.DynamoDB, queueName, clientId, tableName string) chan bool

Types

type QueueEntry

type QueueEntry struct {
	ClientId       string
	EntryTimestamp int64
	LastUpdated    int64
	Zombie         bool
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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