Versions in this module Expand all Collapse all v0 v0.1.0 Jun 6, 2023 Changes in this version + const ErrorInvalidCandidate + const ErrorInvalidParams + const ErrorInvalidSDP + const ErrorPeerClosed + const ErrorPeerNotFound + const ErrorRoomFull + const ErrorServerAddTransceiver + const ErrorServerCreateAnswer + const ErrorServerCreateOffer + const ErrorServerNewPeerConnection + const ErrorServerNewTrack + const ErrorServerSetLocalAnswer + const ErrorServerSetLocalOffer + const ErrorServerSetRemoteAnswer + const ErrorServerSetRemoteOffer + const ErrorServerTimeout + const ErrorTrackNotFound + func Boot(cp string) + func ServeRPC(engine *Engine, conf *Configuration) error + type Call struct + Id string + Method string + Params []any + type Configuration struct + Engine struct{ ... } + RPC struct{ ... } + Turn struct{ ... } + func Setup(path string) (*Configuration, error) + type Engine struct + IP string + Interface string + PortMax uint16 + PortMin uint16 + State State + func BuildEngine(conf *Configuration) (*Engine, error) + func (engine *Engine) GetRoom(rid string) *pmap + func (engine *Engine) Loop() + type Error struct + Code int + Description string + Status int + func (e Error) Error() string + type NTS struct + Credential string + URLs string + Username string + type Peer struct + func BuildPeer(rid, uid string, pc *webrtc.PeerConnection, callback string) *Peer + func (p *Peer) Close() error + type R struct + type Render struct + func NewRender(w http.ResponseWriter, id string) *Render + func (r *Render) RenderData(data any) + func (r *Render) RenderError(err error) + type Router struct + func NewRouter(engine *Engine) *Router + type Sender struct + type State struct + ActivePeers int + ActiveRooms int + ClosedPeers int + ClosedRooms int + UpdatedAt time.Time