Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClientCodec ¶
func NewClientCodec(codec Codec) core.ClientCodec
NewClientCodec returns the ClientCodec.
func NewServiceCodec ¶
func NewServiceCodec(codec Codec, options ...core.CodecOption) core.ServiceCodec
NewServiceCodec returns the ServiceCodec.
Types ¶
type ClientCodec ¶
type ClientCodec struct { Codec // contains filtered or unexported fields }
func (*ClientCodec) Decode ¶
func (c *ClientCodec) Decode(response []byte, context *core.ClientContext) (result []interface{}, err error)
func (*ClientCodec) Encode ¶
func (c *ClientCodec) Encode(name string, args []interface{}, context *core.ClientContext) ([]byte, error)
type ServiceCodec ¶
type ServiceCodec struct { Codec // contains filtered or unexported fields }
func (*ServiceCodec) Decode ¶
func (c *ServiceCodec) Decode(request []byte, context *core.ServiceContext) (name string, args []interface{}, err error)
func (*ServiceCodec) Encode ¶
func (c *ServiceCodec) Encode(result interface{}, context *core.ServiceContext) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.