Documentation ¶
Overview ¶
Package mpc contains the type sent thrugh the write
Both the entire message and error are transmitted as a tupple for speed interoperating services beware
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Error ¶
type Error struct {
Msg string `msg:"msg"`
}
Error is equivalent to birpc.Error, recreated here for MessagePack en/decoding
func (Error) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type Message ¶
type Message struct { ID uint64 `msg:"id"` Func string `msg:"fn"` Args msgp.Raw `msg:"args"` Result msgp.Raw `msg:"result"` Error *Error `msg:"error"` }
Message is the equivalent of birpc.Message recreated here for MessagePack en/decoding
func (*Message) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
Click to show internal directories.
Click to hide internal directories.