clients

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamoDbClient added in v0.3.2

type DynamoDbClient struct {
	// contains filtered or unexported fields
}

func (DynamoDbClient) CreateTable added in v0.3.2

func (c DynamoDbClient) CreateTable(input *dynamodb.CreateTableInput) error

func (DynamoDbClient) GetItemsInTable added in v0.3.2

func (c DynamoDbClient) GetItemsInTable(table string) ([]map[string]types.AttributeValue, error)

func (DynamoDbClient) New added in v0.3.2

func (c DynamoDbClient) New(hostname string, port int) (DynamoDbClient, error)

func (DynamoDbClient) PutItem added in v0.3.3

func (c DynamoDbClient) PutItem(input *dynamodb.PutItemInput) error

func (DynamoDbClient) PutObject added in v0.3.3

func (c DynamoDbClient) PutObject(table string, object interface{}) error

type IDynamoDbClient added in v0.3.4

type IDynamoDbClient interface {
	Scan(ctx context.Context, params *dynamodb.ScanInput, optFns ...func(*dynamodb.Options)) (*dynamodb.ScanOutput, error)
	CreateTable(ctx context.Context, params *dynamodb.CreateTableInput, optFns ...func(*dynamodb.Options)) (*dynamodb.CreateTableOutput, error)
	PutItem(ctx context.Context, params *dynamodb.PutItemInput, optFns ...func(*dynamodb.Options)) (*dynamodb.PutItemOutput, error)
}

type ISqsClient added in v0.3.4

type ISqsClient interface {
	GetQueueUrl(ctx context.Context, params *sqs.GetQueueUrlInput, optFns ...func(*sqs.Options)) (*sqs.GetQueueUrlOutput, error)
	ReceiveMessage(ctx context.Context, params *sqs.ReceiveMessageInput, optFns ...func(*sqs.Options)) (*sqs.ReceiveMessageOutput, error)
}

type SqsClient

type SqsClient struct {
	// contains filtered or unexported fields
}

func (SqsClient) GetMessagesFrom

func (s SqsClient) GetMessagesFrom(queue string) ([]types.Message, error)

func (SqsClient) New

func (s SqsClient) New(port int) (SqsClient, error)

Jump to

Keyboard shortcuts

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