database

package
v0.0.0-...-d7e49bb Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: EUPL-1.2 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close() error

Close SQLite3 databaser.

func Open

func Open(path string) (err error)

Open an SQLite3 database at the specified path.

Types

type Deity

type Deity struct {
	Id          string `json:"id"`
	Name        string `json:"name"`
	Gender      string `json:"gender"`
	Description string `json:"description"`
}

func GetDeities

func GetDeities() ([]Deity, error)

func GetDeity

func GetDeity(id string) (Deity, error)

func GetRandomDeity

func GetRandomDeity() (Deity, error)

type OlympianInfluence

type OlympianInfluence struct {
	SportId   string  `json:"sport_id"`
	Influence float32 `json:"influence"`
	Name      string  `json:"name"`
}

func GetDeityInfluence

func GetDeityInfluence(id string) ([]OlympianInfluence, error)

func GetErisInfluence

func GetErisInfluence() ([]OlympianInfluence, error)

Return Eris influence on sports. As goddess of discord Eris will return always a negative influence on all sports but random to make people more concerned.

Jump to

Keyboard shortcuts

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