db

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TableName               = "http_crud_backend"
	IDDynamoDBAttributename = "id"
)

Variables

View Source
var ErrHostnameExists = errors.New("hostname already exists")
View Source
var ErrURLNotFound = errors.New("url not found")

Functions

func ClearAllRecords

func ClearAllRecords() error

func DeleteRecord

func DeleteRecord(id string) error

func GetRecord

func GetRecord(id string) (*models.DynamoDBData, error)

func SaveRecord

func SaveRecord(inputStruc models.DynamoDBData) (string, error)

func UpdateRecord

func UpdateRecord(id string, updateData models.DynamoDBData) error

updates an existing record in dynamodb

Types

This section is empty.

Jump to

Keyboard shortcuts

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