ui

package
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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 BroadcastOut struct {
	ID    string `json:"id"`
	Title string `json:"title"`
}

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 (e HTTPError) BadRequest() error

func (HTTPError) Conflict

func (e HTTPError) Conflict() error

func (HTTPError) ErrUnprocessableEntity

func (e HTTPError) ErrUnprocessableEntity() error

func (HTTPError) ErrUpgradeRequired

func (e HTTPError) ErrUpgradeRequired() error

func (HTTPError) Forbidden

func (e HTTPError) Forbidden() error

func (HTTPError) InternalServerError

func (e HTTPError) InternalServerError() error

func (HTTPError) NotFound

func (e HTTPError) NotFound() error

func (HTTPError) Unauthorized

func (e HTTPError) Unauthorized() error

type OfferIn added in v0.0.12

type OfferIn struct {
	SDP string `json:"sdp" validate:"required"`
}

type ViewerIn

type ViewerIn struct {
	BroadcastID string `json:"broadcast_id" validate:"required"`
}

type ViewerOut

type ViewerOut struct {
	SDP string `json:"sdp"`
}

type WsEvent

type WsEvent struct {
	Data  any    `json:"data"`
	Event string `json:"event"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL