clients

package
v0.0.0-...-9dbf566 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const PrimaryBucketName = "rpg-vault-go"

Variables

This section is empty.

Functions

This section is empty.

Types

type CharacterKey

type CharacterKey struct {
	WorldId string
	Id      string
}

type DynamoDbClientWrapper

type DynamoDbClientWrapper struct {
	*dynamodb.Client
}

func GetDynamodbClient

func GetDynamodbClient(awsKey, awsSecret, awsRegion string) *DynamoDbClientWrapper

func (*DynamoDbClientWrapper) BatchDeleteWrapper

func (c *DynamoDbClientWrapper) BatchDeleteWrapper(tableName string, keys []map[string]string) (*dynamodb.BatchWriteItemOutput, error)

func (*DynamoDbClientWrapper) DeleteWrapper

func (c *DynamoDbClientWrapper) DeleteWrapper(tableName string, key interface{}) (*dynamodb.DeleteItemOutput, error)

func (*DynamoDbClientWrapper) GetWrapper

func (c *DynamoDbClientWrapper) GetWrapper(tableName string, key interface{}, resultItem interface{}) (*dynamodb.GetItemOutput, error)

func (*DynamoDbClientWrapper) PutWrapper

func (c *DynamoDbClientWrapper) PutWrapper(tableName string, item interface{}, conditionExp *string) (*dynamodb.PutItemOutput, error)

func (*DynamoDbClientWrapper) QueryWithExpressionWrapper

func (c *DynamoDbClientWrapper) QueryWithExpressionWrapper(tableName string, expr expression.Expression, resultArr interface{}) ([]map[string]types.AttributeValue, error)

func (*DynamoDbClientWrapper) QueryWrapper

func (c *DynamoDbClientWrapper) QueryWrapper(tableName string, keyCondition expression.KeyConditionBuilder, resultArr interface{}) (interface{}, error)

func (*DynamoDbClientWrapper) UpdateWrapper

func (c *DynamoDbClientWrapper) UpdateWrapper(tableName string, key interface{}, update expression.UpdateBuilder) (*dynamodb.UpdateItemOutput, error)

type S3ClientWrapper

type S3ClientWrapper struct {
	*s3.Client
}

func GetS3Client

func GetS3Client(awsKey, awsSecret, awsRegion string) *S3ClientWrapper

func (*S3ClientWrapper) Delete

func (c *S3ClientWrapper) Delete(path string)

func (*S3ClientWrapper) Read

func (c *S3ClientWrapper) Read(path string) []byte

func (*S3ClientWrapper) Upload

func (c *S3ClientWrapper) Upload(contents []byte, destinationPath string) (string, error)

Jump to

Keyboard shortcuts

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