Versions in this module Expand all Collapse all v0 v0.12.0 Sep 20, 2015 Changes in this version + const ProtocolName + var ResponseAlreadyConnected = Response + var ResponseInternalError = Response + var ResponseNotFound = Response + var ResponseSuccess = Response + var ResponseUnexpectedMessage = Response + func ReadMessage(r io.Reader) (interface{}, error) + func WriteMessage(w io.Writer, message interface{}) error + type ConnectRequest struct + ID []byte + func (o *ConnectRequest) DecodeXDR(r io.Reader) error + func (o *ConnectRequest) DecodeXDRFrom(xr *xdr.Reader) error + func (o *ConnectRequest) UnmarshalXDR(bs []byte) error + func (o ConnectRequest) AppendXDR(bs []byte) ([]byte, error) + func (o ConnectRequest) EncodeXDR(w io.Writer) (int, error) + func (o ConnectRequest) EncodeXDRInto(xw *xdr.Writer) (int, error) + func (o ConnectRequest) MarshalXDR() ([]byte, error) + func (o ConnectRequest) MustMarshalXDR() []byte + type JoinRelayRequest struct + func (o *JoinRelayRequest) DecodeXDR(r io.Reader) error + func (o *JoinRelayRequest) DecodeXDRFrom(xr *xdr.Reader) error + func (o *JoinRelayRequest) UnmarshalXDR(bs []byte) error + func (o JoinRelayRequest) AppendXDR(bs []byte) ([]byte, error) + func (o JoinRelayRequest) EncodeXDR(w io.Writer) (int, error) + func (o JoinRelayRequest) EncodeXDRInto(xw *xdr.Writer) (int, error) + func (o JoinRelayRequest) MarshalXDR() ([]byte, error) + func (o JoinRelayRequest) MustMarshalXDR() []byte + type JoinSessionRequest struct + Key []byte + func (o *JoinSessionRequest) DecodeXDR(r io.Reader) error + func (o *JoinSessionRequest) DecodeXDRFrom(xr *xdr.Reader) error + func (o *JoinSessionRequest) UnmarshalXDR(bs []byte) error + func (o JoinSessionRequest) AppendXDR(bs []byte) ([]byte, error) + func (o JoinSessionRequest) EncodeXDR(w io.Writer) (int, error) + func (o JoinSessionRequest) EncodeXDRInto(xw *xdr.Writer) (int, error) + func (o JoinSessionRequest) MarshalXDR() ([]byte, error) + func (o JoinSessionRequest) MustMarshalXDR() []byte + type Ping struct + func (o *Ping) DecodeXDR(r io.Reader) error + func (o *Ping) DecodeXDRFrom(xr *xdr.Reader) error + func (o *Ping) UnmarshalXDR(bs []byte) error + func (o Ping) AppendXDR(bs []byte) ([]byte, error) + func (o Ping) EncodeXDR(w io.Writer) (int, error) + func (o Ping) EncodeXDRInto(xw *xdr.Writer) (int, error) + func (o Ping) MarshalXDR() ([]byte, error) + func (o Ping) MustMarshalXDR() []byte + type Pong struct + func (o *Pong) DecodeXDR(r io.Reader) error + func (o *Pong) DecodeXDRFrom(xr *xdr.Reader) error + func (o *Pong) UnmarshalXDR(bs []byte) error + func (o Pong) AppendXDR(bs []byte) ([]byte, error) + func (o Pong) EncodeXDR(w io.Writer) (int, error) + func (o Pong) EncodeXDRInto(xw *xdr.Writer) (int, error) + func (o Pong) MarshalXDR() ([]byte, error) + func (o Pong) MustMarshalXDR() []byte + type Response struct + Code int32 + Message string + func (o *Response) DecodeXDR(r io.Reader) error + func (o *Response) DecodeXDRFrom(xr *xdr.Reader) error + func (o *Response) UnmarshalXDR(bs []byte) error + func (o Response) AppendXDR(bs []byte) ([]byte, error) + func (o Response) EncodeXDR(w io.Writer) (int, error) + func (o Response) EncodeXDRInto(xw *xdr.Writer) (int, error) + func (o Response) MarshalXDR() ([]byte, error) + func (o Response) MustMarshalXDR() []byte + type SessionInvitation struct + Address []byte + From []byte + Key []byte + Port uint16 + ServerSocket bool + func (i SessionInvitation) AddressString() string + func (i SessionInvitation) GoString() string + func (i SessionInvitation) String() string + func (o *SessionInvitation) DecodeXDR(r io.Reader) error + func (o *SessionInvitation) DecodeXDRFrom(xr *xdr.Reader) error + func (o *SessionInvitation) UnmarshalXDR(bs []byte) error + func (o SessionInvitation) AppendXDR(bs []byte) ([]byte, error) + func (o SessionInvitation) EncodeXDR(w io.Writer) (int, error) + func (o SessionInvitation) EncodeXDRInto(xw *xdr.Writer) (int, error) + func (o SessionInvitation) MarshalXDR() ([]byte, error) + func (o SessionInvitation) MustMarshalXDR() []byte