data

package
v0.0.0-...-a36ef9d Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DATE_FORMAT string = "Monday Jan 2, 2006 3:04pm"
)

Variables

This section is empty.

Functions

func PersistSession

func PersistSession(session Session) error

Types

type Player

type Player struct {
	Name      string `json:"name"`
	Attending string `json:"attending"`
	ToggleUrl string `json:"-"`
	Email     string `json:"email"`
	Gm        bool   `json:"gm"`
}

type Session

type Session struct {
	Date          string   `json:"date"`
	Players       []Player `json:"players"`
	IncrementDays int      `json:"inc_days"`
	Status        string   `json:"status"`
	Password      string   `json:"password"`
}

func ReadSessionData

func ReadSessionData() (Session, error)

func (*Session) GetPlayerByEmail

func (s *Session) GetPlayerByEmail(addr string) *Player

Jump to

Keyboard shortcuts

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