Documentation ¶
Index ¶
- Constants
- Variables
- func ReadMessage(r io.Reader) (interface{}, error)
- func WriteMessage(w io.Writer, message interface{}) error
- type ConnectRequest
- func (o ConnectRequest) AppendXDR(bs []byte) ([]byte, error)
- func (o *ConnectRequest) DecodeXDR(r io.Reader) error
- func (o *ConnectRequest) DecodeXDRFrom(xr *xdr.Reader) 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
- func (o *ConnectRequest) UnmarshalXDR(bs []byte) error
- type JoinRelayRequest
- func (o JoinRelayRequest) AppendXDR(bs []byte) ([]byte, error)
- func (o *JoinRelayRequest) DecodeXDR(r io.Reader) error
- func (o *JoinRelayRequest) DecodeXDRFrom(xr *xdr.Reader) 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
- func (o *JoinRelayRequest) UnmarshalXDR(bs []byte) error
- type JoinSessionRequest
- func (o JoinSessionRequest) AppendXDR(bs []byte) ([]byte, error)
- func (o *JoinSessionRequest) DecodeXDR(r io.Reader) error
- func (o *JoinSessionRequest) DecodeXDRFrom(xr *xdr.Reader) 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
- func (o *JoinSessionRequest) UnmarshalXDR(bs []byte) error
- type Ping
- func (o Ping) AppendXDR(bs []byte) ([]byte, error)
- func (o *Ping) DecodeXDR(r io.Reader) error
- func (o *Ping) DecodeXDRFrom(xr *xdr.Reader) 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
- func (o *Ping) UnmarshalXDR(bs []byte) error
- type Pong
- func (o Pong) AppendXDR(bs []byte) ([]byte, error)
- func (o *Pong) DecodeXDR(r io.Reader) error
- func (o *Pong) DecodeXDRFrom(xr *xdr.Reader) 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
- func (o *Pong) UnmarshalXDR(bs []byte) error
- type RelayFull
- func (o RelayFull) AppendXDR(bs []byte) ([]byte, error)
- func (o *RelayFull) DecodeXDR(r io.Reader) error
- func (o *RelayFull) DecodeXDRFrom(xr *xdr.Reader) error
- func (o RelayFull) EncodeXDR(w io.Writer) (int, error)
- func (o RelayFull) EncodeXDRInto(xw *xdr.Writer) (int, error)
- func (o RelayFull) MarshalXDR() ([]byte, error)
- func (o RelayFull) MustMarshalXDR() []byte
- func (o *RelayFull) UnmarshalXDR(bs []byte) error
- type Response
- func (o Response) AppendXDR(bs []byte) ([]byte, error)
- func (o *Response) DecodeXDR(r io.Reader) error
- func (o *Response) DecodeXDRFrom(xr *xdr.Reader) 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
- func (o *Response) UnmarshalXDR(bs []byte) error
- type SessionInvitation
- func (i SessionInvitation) AddressString() string
- func (o SessionInvitation) AppendXDR(bs []byte) ([]byte, error)
- func (o *SessionInvitation) DecodeXDR(r io.Reader) error
- func (o *SessionInvitation) DecodeXDRFrom(xr *xdr.Reader) error
- func (o SessionInvitation) EncodeXDR(w io.Writer) (int, error)
- func (o SessionInvitation) EncodeXDRInto(xw *xdr.Writer) (int, error)
- func (i SessionInvitation) GoString() string
- func (o SessionInvitation) MarshalXDR() ([]byte, error)
- func (o SessionInvitation) MustMarshalXDR() []byte
- func (i SessionInvitation) String() string
- func (o *SessionInvitation) UnmarshalXDR(bs []byte) error
Constants ¶
View Source
const (
ProtocolName = "bep-relay"
)
Variables ¶
Functions ¶
func ReadMessage ¶
func WriteMessage ¶
Types ¶
type ConnectRequest ¶
type ConnectRequest struct {
ID []byte // max:32
}
func (*ConnectRequest) DecodeXDRFrom ¶
func (o *ConnectRequest) DecodeXDRFrom(xr *xdr.Reader) error
func (ConnectRequest) EncodeXDRInto ¶
func (o ConnectRequest) EncodeXDRInto(xw *xdr.Writer) (int, error)
func (ConnectRequest) MarshalXDR ¶
func (o ConnectRequest) MarshalXDR() ([]byte, error)
func (ConnectRequest) MustMarshalXDR ¶
func (o ConnectRequest) MustMarshalXDR() []byte
func (*ConnectRequest) UnmarshalXDR ¶
func (o *ConnectRequest) UnmarshalXDR(bs []byte) error
type JoinRelayRequest ¶
type JoinRelayRequest struct{}
func (*JoinRelayRequest) DecodeXDRFrom ¶
func (o *JoinRelayRequest) DecodeXDRFrom(xr *xdr.Reader) error
func (JoinRelayRequest) EncodeXDRInto ¶
func (o JoinRelayRequest) EncodeXDRInto(xw *xdr.Writer) (int, error)
func (JoinRelayRequest) MarshalXDR ¶
func (o JoinRelayRequest) MarshalXDR() ([]byte, error)
func (JoinRelayRequest) MustMarshalXDR ¶
func (o JoinRelayRequest) MustMarshalXDR() []byte
func (*JoinRelayRequest) UnmarshalXDR ¶
func (o *JoinRelayRequest) UnmarshalXDR(bs []byte) error
type JoinSessionRequest ¶
type JoinSessionRequest struct {
Key []byte // max:32
}
func (JoinSessionRequest) AppendXDR ¶
func (o JoinSessionRequest) AppendXDR(bs []byte) ([]byte, error)
func (*JoinSessionRequest) DecodeXDRFrom ¶
func (o *JoinSessionRequest) DecodeXDRFrom(xr *xdr.Reader) error
func (JoinSessionRequest) EncodeXDR ¶
func (o JoinSessionRequest) EncodeXDR(w io.Writer) (int, error)
func (JoinSessionRequest) EncodeXDRInto ¶
func (o JoinSessionRequest) EncodeXDRInto(xw *xdr.Writer) (int, error)
func (JoinSessionRequest) MarshalXDR ¶
func (o JoinSessionRequest) MarshalXDR() ([]byte, error)
func (JoinSessionRequest) MustMarshalXDR ¶
func (o JoinSessionRequest) MustMarshalXDR() []byte
func (*JoinSessionRequest) UnmarshalXDR ¶
func (o *JoinSessionRequest) UnmarshalXDR(bs []byte) error
type Ping ¶
type Ping struct{}
func (Ping) MarshalXDR ¶
func (Ping) MustMarshalXDR ¶
func (*Ping) UnmarshalXDR ¶
type Pong ¶
type Pong struct{}
func (Pong) MarshalXDR ¶
func (Pong) MustMarshalXDR ¶
func (*Pong) UnmarshalXDR ¶
type RelayFull ¶ added in v0.12.4
type RelayFull struct{}
func (*RelayFull) DecodeXDRFrom ¶ added in v0.12.4
func (RelayFull) EncodeXDRInto ¶ added in v0.12.4
func (RelayFull) MarshalXDR ¶ added in v0.12.4
func (RelayFull) MustMarshalXDR ¶ added in v0.12.4
func (*RelayFull) UnmarshalXDR ¶ added in v0.12.4
type Response ¶
func (Response) MarshalXDR ¶
func (Response) MustMarshalXDR ¶
func (*Response) UnmarshalXDR ¶
type SessionInvitation ¶
type SessionInvitation struct { From []byte // max:32 Key []byte // max:32 Address []byte // max:32 Port uint16 ServerSocket bool }
func (SessionInvitation) AddressString ¶
func (i SessionInvitation) AddressString() string
func (SessionInvitation) AppendXDR ¶
func (o SessionInvitation) AppendXDR(bs []byte) ([]byte, error)
func (*SessionInvitation) DecodeXDRFrom ¶
func (o *SessionInvitation) DecodeXDRFrom(xr *xdr.Reader) error
func (SessionInvitation) EncodeXDRInto ¶
func (o SessionInvitation) EncodeXDRInto(xw *xdr.Writer) (int, error)
func (SessionInvitation) GoString ¶
func (i SessionInvitation) GoString() string
func (SessionInvitation) MarshalXDR ¶
func (o SessionInvitation) MarshalXDR() ([]byte, error)
func (SessionInvitation) MustMarshalXDR ¶
func (o SessionInvitation) MustMarshalXDR() []byte
func (SessionInvitation) String ¶
func (i SessionInvitation) String() string
func (*SessionInvitation) UnmarshalXDR ¶
func (o *SessionInvitation) UnmarshalXDR(bs []byte) error
Click to show internal directories.
Click to hide internal directories.