valueobject

package
v0.0.0-...-80ca719 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BoardColumns int = 7
	BoardRows    int = 6
)
View Source
const ActiveGame time.Duration = time.Second * 86400
View Source
const SquarEmpty string = ""

Variables

This section is empty.

Functions

This section is empty.

Types

type Resolution

type Resolution string
const (
	Resolution_Winner Resolution = "Winner"
	Resolution_Tie    Resolution = "Tie"
	Resolution_Next   Resolution = "Next"
)

type Result

type Result string
const (
	Tie           Result = "Tie"
	Winner        Result = "Winner"
	UnknownResult Result = "Unknown"
)

func GetResult

func GetResult(isTie bool, winnerId *string) Result

type Status

type Status string
const (
	Status_Incompleted Status = "Incompleted"
	Status_Success     Status = "Success"
	Status_InProgress  Status = "InProgress"
)

func GetStatus

func GetStatus(isTie bool, winnerId *string, createdAt time.Time) Status

Jump to

Keyboard shortcuts

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