db

package
v0.0.0-...-020586c Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataPersister

type DataPersister interface {
	Close()

	// Player
	SaveNewPlayer(name string, guid string, ip_address string) error
	UpdatePlayer() error

	// Pen
	Pen_add(guid string, size float64) error
	Pen_PenOfTheDay() (string, []PenData, error)
	Pen_PenHallOfFame() ([]PenData, error)
	Pen_PenHallOfShame() ([]PenData, error)
}

type PenData

type PenData struct {
	Name sql.NullString
	Size float64
	Date time.Time
}

func (PenData) GetDate

func (p PenData) GetDate() string

func (PenData) GetName

func (p PenData) GetName() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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