database

package
v0.0.0-...-9a8c68c Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDynamoDBClient

func InitDynamoDBClient() (*dynamodb.Client, error)

Types

type DB

type DB struct {
	Conn *dynamodb.Client
}

func StartDB

func StartDB() (*DB, error)

func (*DB) CheckUser

func (db *DB) CheckUser(user *apitypes.UserLogin) (*apitypes.User, error)

func (*DB) GetAllItem

func (db *DB) GetAllItem(tableid string) (*[]map[string]any, error)

func (*DB) GetAllUserTables

func (db *DB) GetAllUserTables(userid string) (*[]apitypes.TableInfo, error)

Jump to

Keyboard shortcuts

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