database

package
v0.0.0-...-b818ab2 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(config config.Config) (*gorm.DB, error)

Types

type Guild

type Guild struct {
	gorm.Model

	// GuildID is the Discord ID for this guild.
	GuildID string `gorm:"index"`
	// LeaderboardCode is the Advent of Code leaderboard code for this guild's leaderboard.
	LeaderboardCode *string
	// LeaderboardID is the unique ID for the Advent of Code leaderboard for this guild.
	LeaderboardID *string
	// ChannelID is the ID of the channel to post leaderboard updates to.
	ChannelID *string
	// EnableAPI configures whether the data for this leaderboard should be republished via our API.
	EnableAPI bool
}

Jump to

Keyboard shortcuts

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