common_models

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamodbClientAPI

type DynamodbClientAPI interface {
	PutItem(ctx context.Context, params *dynamodb.PutItemInput, optFns ...func(*dynamodb.Options)) (*dynamodb.PutItemOutput, error)
	GetItem(ctx context.Context, params *dynamodb.GetItemInput, optFns ...func(*dynamodb.Options)) (*dynamodb.GetItemOutput, error)
	TransactGetItems(ctx context.Context, params *dynamodb.TransactGetItemsInput, optFns ...func(*dynamodb.Options)) (*dynamodb.TransactGetItemsOutput, error)
	TransactWriteItems(ctx context.Context, params *dynamodb.TransactWriteItemsInput, optFns ...func(*dynamodb.Options)) (*dynamodb.TransactWriteItemsOutput, error)
}

type DynamodbComplexPrimaryKey

type DynamodbComplexPrimaryKey struct {
	PartitionKey DynamodbSimplePrimaryKey
	SortKey      DynamodbSimplePrimaryKey
}

type DynamodbSimplePrimaryKey

type DynamodbSimplePrimaryKey struct {
	KeyName string
	Value   interface{}
}

type ErrorResponse

type ErrorResponse struct {
	Message string `json:"message"`
}

type LambdaContext

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

func NewLambdaContext

func NewLambdaContext() LambdaContext

func (LambdaContext) Deadline

func (ctx LambdaContext) Deadline() (deadline time.Time, ok bool)

func (LambdaContext) Done

func (ctx LambdaContext) Done() <-chan struct{}

func (LambdaContext) Err

func (ctx LambdaContext) Err() error

func (*LambdaContext) Exists

func (ctx *LambdaContext) Exists(key string) bool

func (*LambdaContext) Get

func (ctx *LambdaContext) Get(key string) (interface{}, bool)

func (*LambdaContext) Set

func (ctx *LambdaContext) Set(key string, value interface{})

func (LambdaContext) Value

func (ctx LambdaContext) Value(key interface{}) interface{}

type RedisEntity

type RedisEntity struct {
	Key            string
	Value          interface{}
	ExpirationTime time.Duration
}

type ValidatedRequest

type ValidatedRequest interface {
	Validate() common_errors.GenericApplicationError
}

Jump to

Keyboard shortcuts

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