db

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func RegisterUser

func RegisterUser(username string, aoeId string, discordId string, guildId string) error

func UpdateUserElo

func UpdateUserElo(discordId string, guildId string, elo userElo) error

Types

type User

type User struct {
	DiscordUserID string
	Aoe4Username  string
	Aoe4Id        string
	CurrentElo    userElo
	NewElo        userElo
}

func GetUser

func GetUser(discordId string, guildId string) (*User, error)

func GetUsers

func GetUsers(guildId string) (users []User, err error)

Jump to

Keyboard shortcuts

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