Documentation ¶
Index ¶
- type Message
- type ServerMessage
- func (m ServerMessage) Binary(w channel.BinaryWriter) error
- func (m ServerMessage) Close() error
- func (m ServerMessage) FromBinary(r channel.BinaryReader) (channel.Msg, error)
- func (m ServerMessage) FromJSON(r io.Reader) (channel.Msg, io.Reader, error)
- func (m ServerMessage) JSON(w io.Writer) error
- func (m ServerMessage) Upload() io.Reader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
func BinaryMessage ¶
func BinaryMessage(r channel.BinaryReader) (Message, error)
func (Message) FromBinary ¶
type ServerMessage ¶
type ServerMessage struct { Available bool Sig []byte Size int64 channel.NeverEqual // contains filtered or unexported fields }
func BinaryServerMessage ¶
func BinaryServerMessage(r channel.BinaryReader) (ServerMessage, error)
func JSONServerMessage ¶
func NewNoServerMessage ¶
func NewNoServerMessage() ServerMessage
func NewServerMessage ¶
func NewServerMessage(size int64, sig []byte, r io.Reader) ServerMessage
func (ServerMessage) Binary ¶
func (m ServerMessage) Binary(w channel.BinaryWriter) error
func (ServerMessage) Close ¶
func (m ServerMessage) Close() error
func (ServerMessage) FromBinary ¶
func (m ServerMessage) FromBinary(r channel.BinaryReader) (channel.Msg, error)
func (ServerMessage) Upload ¶
func (m ServerMessage) Upload() io.Reader
Click to show internal directories.
Click to hide internal directories.