Documentation
¶
Overview ¶
contains wrappers for database query functions. each query is abstracted in its own function as they utilize different dynamodb tools (indexes, pagination etc.)
Index ¶
- Constants
- type UserOutput
- func FetchByElo(dynamoClient *dynamodb.Client, ctx context.Context, tableName string, ...) ([]UserOutput, error)
- func FetchByPage(dynamoClient *dynamodb.Client, ctx context.Context, tableName string, ...) ([]UserOutput, string, error)
- func FetchByUsername(dynamoClient *dynamodb.Client, ctx context.Context, tableName string, ...) ([]UserOutput, error)
Constants ¶
View Source
const (
MAX_PAGESIZE = 100
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserOutput ¶
type UserOutput struct { Username string `dynamodbav:"username" json:"username"` Disabled bool `dynamodbav:"disabled" json:"disabled"` Region string `dynamodbav:"user_region" json:"region"` Title string `dynamodbav:"title" json:"title"` IconUrl string `dynamodbav:"iconurl" json:"iconurl"` Elo int `dynamodbav:"elo" json:"elo"` }
func FetchByElo ¶
func FetchByPage ¶
func FetchByUsername ¶
Click to show internal directories.
Click to hide internal directories.