tools

package
v0.0.0-...-640b5a9 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddGames

func AddGames(games []types.MLBGame)

func DoMongo

func DoMongo() string

func WatchForChanges

func WatchForChanges()

Types

type CoinDetails

type CoinDetails struct {
	Coins    int64
	Username string
}

type DatabaseInterface

type DatabaseInterface interface {
	GetUserLoginDetails(username string) *LoginDetails
	GetUserCoins(username string) *CoinDetails
	SetupDatabase() error
}

func NewDatabase

func NewDatabase() (*DatabaseInterface, error)

type LoginDetails

type LoginDetails struct {
	AuthToken string
	Username  string
}

Database collections

Jump to

Keyboard shortcuts

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