dynamodb

package
v0.0.0-...-3885ffa Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TableName = "AdquirenciaOrders"
)

Variables

This section is empty.

Functions

func NewDynamoDbClient

func NewDynamoDbClient() *dynamodb.DynamoDB

Types

type InternalError

type InternalError struct {
	Reason string
	Err    error
}

func (*InternalError) Error

func (e *InternalError) Error() string

func (*InternalError) Unwrap

func (e *InternalError) Unwrap() error

type MarshalError

type MarshalError struct {
	Input interface{}
	Err   error
}

func (*MarshalError) Error

func (e *MarshalError) Error() string

func (*MarshalError) Unwrap

func (e *MarshalError) Unwrap() error

type NotFoundError

type NotFoundError struct {
	Attribute string
	Value     string
	Err       error
}

func (*NotFoundError) Error

func (e *NotFoundError) Error() string

func (*NotFoundError) Unwrap

func (e *NotFoundError) Unwrap() error

type OrderRepository

type OrderRepository interface {
	GetOrder(id string) (models.Order, error)
	CreateOrder(order models.PendingOrder) (models.PendingOrder, error)
	UpdateOrder(id, status, authCode string) error
}

func NewOrderRepository

func NewOrderRepository() OrderRepository

type Repository

type Repository interface {
	// contains filtered or unexported methods
}

type UnmarshalError

type UnmarshalError struct {
	Output interface{}
	Err    error
}

func (*UnmarshalError) Error

func (e *UnmarshalError) Error() string

func (*UnmarshalError) Unwrap

func (e *UnmarshalError) Unwrap() error

Jump to

Keyboard shortcuts

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