Documentation ¶
Index ¶
- func HandleCloseSession(w http.ResponseWriter, r *http.Request)
- func HandleCreateGameSession(w http.ResponseWriter, r *http.Request)
- func HandleCreateSessionInvitation(w http.ResponseWriter, r *http.Request)
- func HandleJoinSession(w http.ResponseWriter, r *http.Request)
- type CloseSessionCommand
- type CloseSessionCommandHandler
- type CreateSessionCommand
- type CreateSessionCommandHandler
- type CreateSessionInvitationCommand
- type CreateSessionInvitationCommandHandler
- type CreateSessionResponse
- type JoinSessionCommand
- type JoinSessionCommandHandler
- type JoinSessionResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleCloseSession ¶
func HandleCloseSession(w http.ResponseWriter, r *http.Request)
func HandleCreateGameSession ¶
func HandleCreateGameSession(w http.ResponseWriter, r *http.Request)
func HandleCreateSessionInvitation ¶
func HandleCreateSessionInvitation(w http.ResponseWriter, r *http.Request)
func HandleJoinSession ¶
func HandleJoinSession(w http.ResponseWriter, r *http.Request)
Types ¶
type CloseSessionCommand ¶
func (CloseSessionCommand) Validate ¶
func (c CloseSessionCommand) Validate() error
type CloseSessionCommandHandler ¶
type CloseSessionCommandHandler struct {
// contains filtered or unexported fields
}
func NewCloseSessionCommandHandler ¶
func NewCloseSessionCommandHandler(db *sql.DB) *CloseSessionCommandHandler
func (*CloseSessionCommandHandler) Handle ¶
func (h *CloseSessionCommandHandler) Handle( ctx context.Context, request CloseSessionCommand, ) (core.Unit, error)
type CreateSessionCommand ¶
func (CreateSessionCommand) Validate ¶
func (c CreateSessionCommand) Validate() error
type CreateSessionCommandHandler ¶
type CreateSessionCommandHandler struct {
// contains filtered or unexported fields
}
func NewCreateSessionCommandHandler ¶
func NewCreateSessionCommandHandler(db *sql.DB) *CreateSessionCommandHandler
func (*CreateSessionCommandHandler) Handle ¶
func (h *CreateSessionCommandHandler) Handle( ctx context.Context, request CreateSessionCommand, ) (CreateSessionResponse, error)
type CreateSessionInvitationCommand ¶
type CreateSessionInvitationCommand struct { SessionID string InviterID uuid.UUID InviteeID uuid.UUID }
func (CreateSessionInvitationCommand) Validate ¶
func (c CreateSessionInvitationCommand) Validate() error
type CreateSessionInvitationCommandHandler ¶
type CreateSessionInvitationCommandHandler struct {
// contains filtered or unexported fields
}
func NewCreateSessionInvitationCommandHandler ¶
func NewCreateSessionInvitationCommandHandler(db *sql.DB) *CreateSessionInvitationCommandHandler
func (*CreateSessionInvitationCommandHandler) Handle ¶
func (h *CreateSessionInvitationCommandHandler) Handle( ctx context.Context, request CreateSessionInvitationCommand, ) (core.Unit, error)
type CreateSessionResponse ¶
type CreateSessionResponse struct {
SessionID string
}
type JoinSessionCommand ¶
func (JoinSessionCommand) Validate ¶
func (c JoinSessionCommand) Validate() error
type JoinSessionCommandHandler ¶
type JoinSessionCommandHandler struct {
// contains filtered or unexported fields
}
func NewJoinSessionCommandHandler ¶
func NewJoinSessionCommandHandler(db *sql.DB) *JoinSessionCommandHandler
func (*JoinSessionCommandHandler) Handle ¶
func (h *JoinSessionCommandHandler) Handle( ctx context.Context, request JoinSessionCommand, ) (JoinSessionResponse, error)
type JoinSessionResponse ¶
type JoinSessionResponse struct {
SessionURL string
}
Click to show internal directories.
Click to hide internal directories.