Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomValidator ¶
type CustomValidator struct {
// contains filtered or unexported fields
}
func (*CustomValidator) Validate ¶
func (cv *CustomValidator) Validate(i interface{}) error
type Lobby ¶
type Lobby struct { ID uuid.UUID `json:"id"` Name string `json:"name"` Status string `json:"status"` Owner *Player `json:"owner"` Difficulty int `json:"difficulty"` MissionLength int `json:"mission_length"` NumberOfCrewMembers int `json:"number_of_crew_members" ` MaxPlayers int `json:"max_players" ` ExpansionPacks []string `json:"expansion_packs" ` Players []*Player `json:"players"` Payload map[string]interface{} `json:"payload"` }
type LobbyCreate ¶
type LobbyCreate struct { ID uuid.UUID `param:"lobbyId" validate:"required"` Name string `json:"name" validate:"required"` Owner *Player `json:"owner" validate:"required"` Password string `json:"password"` Difficulty int `json:"difficulty" validate:"required"` MissionLength int `json:"mission_length" validate:"required"` NumberOfCrewMembers int `json:"number_of_crew_members" validate:"required"` MaxPlayers int `json:"max_players" validate:"required"` ExpansionPacks []string `json:"expansion_packs"` Payload map[string]interface{} `json:"payload"` }
type LobbyDelete ¶
type LobbyUpdate ¶
type LobbyUpdate struct { ID uuid.UUID `param:"lobbyId" validate:"required"` Name string `json:"name" validate:"required"` Status string `json:"status" validate:"required"` Password string `json:"password"` Difficulty int `json:"difficulty" validate:"required"` MissionLength int `json:"mission_length" validate:"required"` NumberOfCrewMembers int `json:"number_of_crew_members" validate:"required"` MaxPlayers int `json:"max_players" validate:"required"` ExpansionPacks []string `json:"expansion_packs"` Payload map[string]interface{} `json:"payload"` }
type LobbyUpdateStatus ¶
type PlayerCreate ¶
type PlayerUpdate ¶
Click to show internal directories.
Click to hide internal directories.