Documentation
¶
Index ¶
- Constants
- func HandleEstimate(msg message.Message) (*message.Message, error)
- func HandleGuess(msg message.Message) (*message.Message, error)
- func HandleLockRoom(msg message.Message) (*message.Message, error)
- func HandleNewRound(msg message.Message) (*message.Message, error)
- func HandleOpenRoom(msg message.Message) (*message.Message, error)
- func HandleReveal(msg message.Message) (*message.Message, error)
- func HandleSkipRound(msg message.Message) (*message.Message, error)
- type Client
- type EstimatePayload
- type GuessConfig
- type GuessConfigEntry
- type GuessPayload
- type LockRoomPayload
- type Message
- type NewRoundPayload
- type OpenRoomPayload
- type RevealPayload
- type Room
- type RoomId
- type SkipRoundPayload
- type UserDTO
Constants ¶
View Source
const ( ProductOwner = "product-owner" Developer = "developer" )
View Source
const ( Guess = "guess" NewRound = "new-round" Estimate = "estimate" LockRoom = "lock-room" OpenRoom = "open-room" SkipRound = "skip" Reveal = "reveal" )
Variables ¶
This section is empty.
Functions ¶
func HandleEstimate ¶
func HandleEstimate(msg message.Message) (*message.Message, error)
func HandleGuess ¶
func HandleGuess(msg message.Message) (*message.Message, error)
func HandleLockRoom ¶
func HandleLockRoom(msg message.Message) (*message.Message, error)
func HandleNewRound ¶
func HandleNewRound(msg message.Message) (*message.Message, error)
func HandleOpenRoom ¶
func HandleOpenRoom(msg message.Message) (*message.Message, error)
func HandleReveal ¶
func HandleReveal(msg message.Message) (*message.Message, error)
func HandleSkipRound ¶
func HandleSkipRound(msg message.Message) (*message.Message, error)
Types ¶
type Client ¶
func (*Client) WebsocketReader ¶
func (client *Client) WebsocketReader()
func (*Client) WebsocketWriter ¶
func (client *Client) WebsocketWriter()
type EstimatePayload ¶
type EstimatePayload struct {
// contains filtered or unexported fields
}
type GuessConfig ¶
type GuessConfig struct {
Guesses []GuessConfigEntry
}
func NewGuessConfig ¶
func NewGuessConfig(possibleGuesses, possibleGuessesDescription string) (*GuessConfig, error)
type GuessConfigEntry ¶
type GuessPayload ¶
type GuessPayload struct {
// contains filtered or unexported fields
}
type LockRoomPayload ¶
type LockRoomPayload struct {
// contains filtered or unexported fields
}
type NewRoundPayload ¶
type NewRoundPayload struct {
// contains filtered or unexported fields
}
type OpenRoomPayload ¶
type OpenRoomPayload struct {
// contains filtered or unexported fields
}
type RevealPayload ¶
type RevealPayload struct {
// contains filtered or unexported fields
}
type Room ¶
type Room struct {
Id RoomId
InProgress bool
Join chan *Client
Clients map[*Client]bool
Broadcast chan *Message
NameOfCreator string
IsLocked bool
Key uuid.UUID
HashedPassword []byte
Created time.Time
// contains filtered or unexported fields
}
func (*Room) MarshalJSON ¶
type SkipRoundPayload ¶
type SkipRoundPayload struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.