storage

package
v0.0.0-...-772b57d Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(cfg Config) (*sql.DB, error)

func InsertPlayerTime

func InsertPlayerTime(db *sql.DB, playerTime time.Time) (string, error)

func SelectPlayerTimeRank

func SelectPlayerTimeRank(db *sql.DB, player string) (time.Time, uint, error)

Types

type Config

type Config struct {
	Host     string
	Port     string
	User     string
	Password string
	Database string
}

type PlayerTime

type PlayerTime struct {
	Player string
	Time   time.Time
}

func SelectPlayerTimes

func SelectPlayerTimes(db *sql.DB) ([]PlayerTime, error)

Jump to

Keyboard shortcuts

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