api

package
v0.0.0-...-605c8b4 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleCreateCommentRequest

func HandleCreateCommentRequest(d *dynamodb.Client, body string) (events.LambdaFunctionURLResponse, error)

func HandleListCommentsRequest

func HandleListCommentsRequest(d *dynamodb.Client, url string) (events.LambdaFunctionURLResponse, error)

Types

type CreateCommentResponse

type CreateCommentResponse struct {
	Success bool            `json:"success"`
	Errors  []string        `json:"errors"`
	Comment *models.Comment `json:"comment"`
}

type ListCommentsRequestResponse

type ListCommentsRequestResponse struct {
	Comments *[]models.Comment `json:"comments"`
}

Jump to

Keyboard shortcuts

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