db

package
v0.0.0-...-8965415 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QuestionSlug

type QuestionSlug string

Leetcode Question slug. For example, "two-sum".

type TodoList

type TodoList struct {
	// Discord username
	UserID discord.UserID `json:"id"`
	// Set of TODO questions.
	Questions []byte
}

Each TODO list is bind to a discord user since

type UserInfo

type UserInfo struct {
	ID            discord.UserID `json:"id"`
	Username      string         `json:"username"`
	Discriminator string         `json:"discriminator"`
}

type UserLeetcodeInfo

type UserLeetcodeInfo struct {
	// Discord username
	UserID discord.UserID `json:"id"`
	// Discord user discriminator
	Discriminator string
	// Leetcode username
	LeetcodeUsername string
	// Set of completed questions
	// We will encode them in custom bitmap since it's complication to use dynamodb's set in Golang
	// https://github.com/aws/aws-sdk-go/issues/1990#issuecomment-614087254
	CompletedQuestions []byte
}

Jump to

Keyboard shortcuts

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