models

package
v0.0.0-...-7a1da02 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AcquireLockOption

type AcquireLockOption func(*AcquireLockOptions)

type AcquireLockOptions

type AcquireLockOptions struct {
	PartitionKey         string
	Data                 []byte
	ReplaceData          bool
	DeleteOnRelease      bool
	FailIfLocked         bool
	AdditionalAttributes map[string]types.AttributeValue
}

type CreateDynamoDBTableOptions

type CreateDynamoDBTableOptions struct {
	BillingMode           types.BillingMode
	ProvisionedThroughput *types.ProvisionedThroughput
	TableName             string
	PartitionKey          string
}

type CreateTableOption

type CreateTableOption func(*CreateDynamoDBTableOptions)

type Lock

type Lock struct {
	PartitionKey    string `dynamodbav:"key"`
	Owner           string `dynamodbav:"owner"`
	Timestamp       int64  `dynamodbav:"timestamp"`
	Ttl             int64  `dynamodbav:"ttl"`
	DeleteOnRelease bool   `dynamodbav:"deleteOnRelease"`
	IsReleased      bool   `dynamodbav:"isReleased"`
	Data            []byte `dynamodbav:"data"`
}

Jump to

Keyboard shortcuts

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