query

package
v0.0.0-...-589c078 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

contains wrappers for database query functions. main purpose is to abstract some boilerplate code away from the handler.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserOutput

type UserOutput struct {
	Subject  string `dynamodbav:"subject"`
	Disabled bool   `dynamodbav:"disabled"`
	Username string `dynamodbav:"username"`
	Elo      int    `dynamodbav:"elo"`
	Email    string `dynamodbav:"email"`
}

func FetchByUsername

func FetchByUsername(dynamoClient *dynamodb.Client, ctx context.Context, tableName string, username string) (*UserOutput, error)

Jump to

Keyboard shortcuts

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