Versions in this module Expand all Collapse all v2 v2.9.4 Aug 5, 2020 v2.9.3 Aug 5, 2020 Changes in this version + var ErrInvalidMessage = errors.New("invalid message") + type Codec interface + Close func() error + String func() string + type Marshaler interface + Marshal func(interface{}) ([]byte, error) + String func() string + Unmarshal func([]byte, interface{}) error + type Message struct + Body []byte + Endpoint string + Error string + Header map[string]string + Id string + Method string + Target string + Type MessageType + type MessageType int + const Error + const Event + const Request + const Response + type NewCodec func(io.ReadWriteCloser) Codec + type Reader interface + ReadBody func(interface{}) error + ReadHeader func(*Message, MessageType) error + type Writer interface + Write func(*Message, interface{}) error Other modules containing this package github.com/enakai00/go-micro