Versions in this module Expand all Collapse all v0 v0.0.2 Aug 3, 2022 v0.0.1 Aug 2, 2022 Changes in this version + func NewCodec(c io.ReadWriteCloser) codec.Codec + type Codec struct + Conn io.ReadWriteCloser + func (c *Codec) Close() error + func (c *Codec) ReadBody(b interface{}) error + func (c *Codec) ReadHeader(m *codec.Message, t codec.MessageType) error + func (c *Codec) String() string + func (c *Codec) Write(m *codec.Message, b interface{}) error + type Marshaler struct + func (Marshaler) Marshal(v interface{}) ([]byte, error) + func (Marshaler) String() string + func (Marshaler) Unmarshal(data []byte, v interface{}) error + type Message struct + Data []byte + func NewMessage(data []byte) *Message + func (m *Message) Marshal() ([]byte, error) + func (m *Message) MarshalJSON() ([]byte, error) + func (m *Message) ProtoMessage() + func (m *Message) Reset() + func (m *Message) String() string + func (m *Message) Unmarshal(data []byte) error + func (m *Message) UnmarshalJSON(data []byte) error