Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
var (
	ErrInvalidPacketType = errors.New("invalid packet type")
)
    Functions ¶
This section is empty.
Types ¶
type Buffer ¶
type Buffer struct {
	Data []byte
	// contains filtered or unexported fields
}
    Buffer is an binary buffer handler used in emit args. All buffers will be sent as binary in the transport layer.
func (Buffer) MarshalJSON ¶
MarshalJSON marshals to JSON.
func (*Buffer) UnmarshalJSON ¶
UnmarshalJSON unmarshal data from JSON.
type BufferData ¶
type Decoder ¶
type Decoder struct {
	// contains filtered or unexported fields
}
    func NewDecoder ¶
func NewDecoder(r FrameReader) *Decoder
func (*Decoder) DecodeArgs ¶
func (*Decoder) DiscardLast ¶
type Encoder ¶
type Encoder struct {
	// contains filtered or unexported fields
}
    func NewEncoder ¶
func NewEncoder(w FrameWriter) *Encoder
type FrameReader ¶
type FrameReader interface {
	NextReader() (session.FrameType, io.ReadCloser, error)
}
    type FrameWriter ¶
type FrameWriter interface {
	NextWriter(ft session.FrameType) (io.WriteCloser, error)
}
     Click to show internal directories. 
   Click to hide internal directories.