quote

package
v0.0.0-...-e7863e5 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DescribeQuoteTable

func DescribeQuoteTable() int64

DescribeQuoteTable retrieves information about a DynamoDB table by name. Returns: - int64: the item count of the table

func QueryQuoteByID

func QueryQuoteByID(id string) []map[string]types.AttributeValue

QueryQuoteByID retrieves a quote from the database based on the provided ID. Parameter: - id: the ID of the quote to retrieve. Returns an interface{} containing the retrieved quote.

Types

type Quote

type Quote struct {
	Author string `json:"author"`
	Quote  string `json:"quote"`
}

Quote struct

func GetQuote

func GetQuote() Quote

GetQuote returns a random quote

Jump to

Keyboard shortcuts

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