data

package
v0.0.0-...-db47f36 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: AGPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Database   *bun.DB
	Stats      *foxdb.KeyValueStore
	CacheFiles *foxdb.TableFiles
)
View Source
var AniListGridWidthLarge = 6
View Source
var AniListGridWidthSmall = 8
View Source
var AniListRatio = fmt.Sprintf("%d/%d", aniListRatioWidth, aniListRatioHeight)
View Source
var Anilist = foxdb.CreateDataCache(

	"anilist", "0 0 * * *", getAniList,
)
View Source
var BookGridWidth = 5
View Source
var BookRatio = fmt.Sprintf("%d/%d", bookRatioWidth, bookRatioHeight)
View Source
var Books = foxdb.CreateDataCache(

	"books", "0 0 * * *", getGoodreadsBooks,
)
View Source
var Squirrels = foxdb.CreateDataCache(

	"squirrels", "0 0 * * *", getSquirrels,
)

Functions

func AddOneToCounter

func AddOneToCounter(r *http.Request)

func Init

func Init() error

func ReadCounter

func ReadCounter() (uint64, bool)

Types

type Book

type Book struct {
	Title  string
	Author string
	URL    string
}

type BooksResult

type BooksResult struct {
	Reading      []Book
	ReadingImage CachedSpriteSheet
}

type CachedSpriteSheet

type CachedSpriteSheet struct {
	ImageURL  string   `json:"imageURL"`
	Size      string   `json:"size"`
	Positions []string `json:"position"`
}

Source Files

  • anilist.go
  • data.go
  • goodreads.go
  • spritesheet.go
  • squirrels.go
  • stats.go

Directories

Path Synopsis
generated by cmd/makegames on May 2 21:18:02
generated by cmd/makegames on May 2 21:18:02

Jump to

Keyboard shortcuts

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