package
Version:
v0.0.0-...-38f6706
Opens a new window with list of versions in this module.
Published: Jan 22, 2020
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type DataSource interface {
GetAll() []Entry
SaveNew(entry Entry)
}
DataSource is an interface defining
what must be present for a potential back-end storage
Entry is a leaderboard row containing
a name, score, and metadata
type File struct {
FilePath string
}
Gets the entries out of the cache
updates cache first if not initialized
Saves a new entry to file and updates cache
Source Files
¶
Click to show internal directories.
Click to hide internal directories.