userdb

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Name

func Name(discordID string) string

Name returns the name of a user based on their ID

func New

func New(config *config.Config) error

New initializes and creates the user database

func Set

func Set(discordID string, characterName string)

Set updates or adds an entry for a specified user id

Types

type UserEntry

type UserEntry struct {
	CharacterName string
	DiscordID     string
}

UserEntry represents a record in the database

Jump to

Keyboard shortcuts

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