triviagame

package
v0.0.0-...-becfa1b Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Starting  = "starting"
	Running   = "running"
	Completed = "completed"
)

Variables

This section is empty.

Functions

func AddPlayerWorkflow

func AddPlayerWorkflow(ctx workflow.Context, workflowInput resources.AddPlayerWorkflowInput) error

Add player workflow definition

func TriviaGameWorkflow

func TriviaGameWorkflow(ctx workflow.Context, workflowInput resources.GameWorkflowInput) error

Trivia game workflow definition

func TriviaGamesWorkflow

func TriviaGamesWorkflow(ctx workflow.Context) error

Trivia game workflow definition

func ValidateStatus

func ValidateStatus(status string) error

Types

type AnswerSignal

type AnswerSignal struct {
	Action   string `json:"action"`
	Player   string `json:"player"`
	Question int    `json:"question"`
	Answer   string `json:"answer"`
}

type GameProgress

type GameProgress struct {
	NumberOfQuestions int    `json:"numberOfQuestions"`
	CurrentQuestion   int    `json:"currentQuestion"`
	Stage             string `json:"stage"`
}

type GameSignal

type GameSignal struct {
	Action string `json:"action"`
}

Jump to

Keyboard shortcuts

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