Documentation ¶
Index ¶
- Constants
- func AddPlayerWorkflow(ctx workflow.Context, workflowInput resources.AddPlayerWorkflowInput) error
- func TriviaGameWorkflow(ctx workflow.Context, workflowInput resources.GameWorkflowInput) error
- func TriviaGamesWorkflow(ctx workflow.Context) error
- func ValidateStatus(status string) error
- type AnswerSignal
- type GameProgress
- type GameSignal
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 ¶
Trivia game workflow definition
func ValidateStatus ¶
Types ¶
type AnswerSignal ¶
type GameProgress ¶
type GameSignal ¶
type GameSignal struct {
Action string `json:"action"`
}
Click to show internal directories.
Click to hide internal directories.