Documentation
¶
Index ¶
- Constants
- func GetClientOptions(clientType string) client.Options
- type AddPlayerActivityInput
- type AddPlayerWorkflowInput
- type GameConfiguration
- type GameConfigurationOption
- func WithAnswerTimeLimit(n int) GameConfigurationOption
- func WithCategory(s string) GameConfigurationOption
- func WithNUmberOfQuestions(n int) GameConfigurationOption
- func WithNumberOfPlayers(n int) GameConfigurationOption
- func WithResultTimeout(n int) GameConfigurationOption
- func WithStartTimeout(n int) GameConfigurationOption
- type GameWorkflowConfig
- type GameWorkflowInput
- type KapaResponse
- type ModerationInput
- type Player
- type QueryPlayerActivityInput
- type Result
- type ScoreBoard
- type Submission
- type TriviaQuestionsActivityInput
Constants ¶
View Source
const AddPlayerSignalChannelName = "add-player-signal"
View Source
const AnswerSignalChannelName = "answer-signal"
View Source
const GameSignalChannelName = "start-game-signal"
Variables ¶
This section is empty.
Functions ¶
func GetClientOptions ¶
Types ¶
type AddPlayerActivityInput ¶
type AddPlayerWorkflowInput ¶
type GameConfiguration ¶
type GameConfiguration struct { Category string `json:"category"` NumberOfQuestions int `json:"numberOfQuestions"` NumberOfPlayers int `json:"numberOfPlayers"` AnswerTimeLimit int `json:"answerTimeLimit"` StartTimeLimit int `json:"startTimeLimit"` ResultTimeLimit int `json:"resultTimeLimit"` }
func NewGameConfiguration ¶
func NewGameConfiguration(opts []GameConfigurationOption) *GameConfiguration
func NewGameConfigurationFromWorkflowInput ¶
func NewGameConfigurationFromWorkflowInput(input GameWorkflowInput) *GameConfiguration
type GameConfigurationOption ¶
type GameConfigurationOption func(*GameConfiguration)
func WithAnswerTimeLimit ¶
func WithAnswerTimeLimit(n int) GameConfigurationOption
func WithCategory ¶
func WithCategory(s string) GameConfigurationOption
func WithNUmberOfQuestions ¶
func WithNUmberOfQuestions(n int) GameConfigurationOption
func WithNumberOfPlayers ¶
func WithNumberOfPlayers(n int) GameConfigurationOption
func WithResultTimeout ¶
func WithResultTimeout(n int) GameConfigurationOption
func WithStartTimeout ¶
func WithStartTimeout(n int) GameConfigurationOption
type GameWorkflowConfig ¶
type GameWorkflowConfig struct {
ChatGptKey string `json:"chatGptKey"`
}
type GameWorkflowInput ¶
type GameWorkflowInput struct { GameId string `json:"gameId"` Category string `json:"category"` NumberOfQuestions int `json:"numberOfQuestions"` NumberOfPlayers int `json:"numberOfPlayers"` AnswerTimeLimit int `json:"answerTimeLimit"` StartTimeLimit int `json:"startTimeLimit"` ResultTimeLimit int `json:"resultTimeLimit"` }
type KapaResponse ¶
type ModerationInput ¶
type ScoreBoard ¶
type Submission ¶
Click to show internal directories.
Click to hide internal directories.