Documentation
¶
Index ¶
- func NewBroadcastsRouter(echo *echo.Echo, broadcastUsecase domain.BroadcastsUsecases)
- type BroadcastCreateOut
- type BroadcastIn
- type BroadcastOut
- type BroadcastsOut
- type CandidateIn
- type GetBroadcastParams
- type HTTPError
- func (e HTTPError) BadRequest() error
- func (e HTTPError) Conflict() error
- func (e HTTPError) ErrUnprocessableEntity() error
- func (e HTTPError) ErrUpgradeRequired() error
- func (e HTTPError) Forbidden() error
- func (e HTTPError) InternalServerError() error
- func (e HTTPError) NotFound() error
- func (e HTTPError) Unauthorized() error
- type OfferIn
- type ViewerIn
- type ViewerOut
- type WsEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBroadcastsRouter ¶
func NewBroadcastsRouter(echo *echo.Echo, broadcastUsecase domain.BroadcastsUsecases)
Types ¶
type BroadcastCreateOut ¶
type BroadcastCreateOut struct {
SDP string `json:"sdp"`
}
type BroadcastIn ¶
type BroadcastIn struct {
Title string `json:"title" validate:"required"`
}
type BroadcastOut ¶
type BroadcastsOut ¶
type BroadcastsOut struct {
Broadcasts []*BroadcastOut `json:"broadcasts"`
}
type CandidateIn ¶ added in v0.0.12
type CandidateIn struct {
Candidate any `json:"candidate" validate:"required"`
}
type GetBroadcastParams ¶
type GetBroadcastParams struct {
ID string `param:"id"`
}
type HTTPError ¶
type HTTPError struct {
Message string `json:"message"`
}
func (HTTPError) BadRequest ¶
func (HTTPError) ErrUnprocessableEntity ¶
func (HTTPError) ErrUpgradeRequired ¶
func (HTTPError) InternalServerError ¶
func (HTTPError) Unauthorized ¶
Click to show internal directories.
Click to hide internal directories.