application

package
v0.0.0-...-12bf87c Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2023 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	Ctx       context.Context
	Cfg       *config.Config
	AwsCfg    aws.Config
	DDBClient *dynamodb.Client
}

func New

func New(ctx context.Context) (*Application, error)

type ErrorResponseBody

type ErrorResponseBody struct {
	StatusCode int         `json:"code"`
	Message    string      `json:"message"`
	Details    interface{} `json:"details"`
}

type RequestError

type RequestError struct {
	StatusCode int
	Message    string
	Err        error
}

func NewRequestError

func NewRequestError(code int, message string, err error) *RequestError

func (*RequestError) Error

func (r *RequestError) Error() error

func (*RequestError) ErrorMessage

func (r *RequestError) ErrorMessage() string

func (*RequestError) GatewayResponse

func (r *RequestError) GatewayResponse() *events.APIGatewayV2HTTPResponse

func (*RequestError) GatewayResponseWithCode

func (r *RequestError) GatewayResponseWithCode(code int) *events.APIGatewayV2HTTPResponse

Jump to

Keyboard shortcuts

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