package
Version:
v0.0.0-...-22ebb89
Opens a new window with list of versions in this module.
Published: Apr 16, 2023
License: MIT
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type CustomValidator struct {
}
type Message struct {
ID uuid.UUID `json:"id"`
PlayerId uuid.UUID `json:"player_id"`
SendTime time.Time `json:"send_time"`
Number int `json:"number"`
Topic string `json:"topic"`
Message map[string]interface{} `json:"message"`
}
type MessageCreate struct {
ID uuid.UUID `param:"messageId" validate:"required"`
LobbyId uuid.UUID `param:"lobbyId" validate:"required"`
Topic string `json:"topic" validate:"required"`
Message map[string]interface{} `json:"message"`
}
type MessageGet struct {
LobbyId uuid.UUID `param:"lobbyId" validate:"required"`
Number int `param:"number" validate:"required"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.