Documentation ¶
Overview ¶
signal is an internal pkg of quikface that implements simple signal server.
Index ¶
- func Decode(in string, obj interface{}, decompress bool) error
- func Encode(obj interface{}, compress bool) string
- func MustReadStdin() string
- func Send(w io.Writer, data interface{}) error
- func Unzip(in []byte) ([]byte, error)
- func WSHandler(w http.ResponseWriter, r *http.Request)
- func Zip(in []byte) ([]byte, error)
- type Message
- type Signal
- type WsClientMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustReadStdin ¶
func MustReadStdin() string
MustReadStdin blocks until input is received from stdin, and panics on error.
Types ¶
type Signal ¶
type WsClientMessage ¶
type WsClientMessage struct { Command string `json:"cmd"` ClientID string `json:"client_id"` Msg string `json:"msg"` Type string `json:"type"` SDP string `json:"sdp,omitempty"` Name string `json:"name,omitempty"` }
websocket message from the client
func (WsClientMessage) Cmd ¶
func (cm WsClientMessage) Cmd() string
func (WsClientMessage) String ¶
func (cm WsClientMessage) String() string
Click to show internal directories.
Click to hide internal directories.