 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Overview ¶
Package msgpackrpc provides a msgpack-rpc codec
Index ¶
Constants ¶
      View Source
      
  const ( RequestType = 0 ResponseType = 1 NotificationType = 2 RequestPackSize = 4 ResponsePackSize = 4 NotificationPackSize = 3 )
The msgpack-rpc specification: https://github.com/msgpack-rpc/msgpack-rpc/blob/master/spec.md
Variables ¶
      View Source
      
  
var ( ErrBadPackSize = errors.New("Bad pack size") ErrBadMessageType = errors.New("Bad message type") ErrBadErrorType = errors.New("Bad error type") ErrUnexpectedParams = errors.New("Unexpected params") ErrNotEncodable = errors.New("Not encodable") ErrNotDecodable = errors.New("Not decodable") )
Functions ¶
Types ¶
type Notification ¶
type Notification struct {
	Method string
	Body   interface{}
	// contains filtered or unexported fields
}
     Click to show internal directories. 
   Click to hide internal directories.