highscores

package
v0.0.0-...-a657feb Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bod

func Bod(t time.Time) time.Time

func Read

func Read(session *mgo.Session) ([]byte, error)

func Write

func Write(session *mgo.Session, h Highscore) bool

Types

type Highscore

type Highscore struct {
	Nickname string
	Score    uint64
	Level    uint64
	Lines    uint64
	Ts       time.Time
}

type HighscoreMessage

type HighscoreMessage struct {
	Ath  []Highscore
	Week []Highscore
}

Jump to

Keyboard shortcuts

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