Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Marshalizer ¶
type Marshalizer interface { Marshal(data interface{}) ([]byte, error) Unmarshal(data interface{}, dataBytes []byte) error IsInterfaceNil() bool }
Marshalizer deals with messages serialization
func CreateMarshalizer ¶
func CreateMarshalizer(kind MarshalizerKind) Marshalizer
CreateMarshalizer creates a marshalizer with the specified kind
type MarshalizerKind ¶
type MarshalizerKind uint32
MarshalizerKind is the kind of a message (that is passed between the Node and VM)
const ( // JSON is a marshalizer kind JSON MarshalizerKind = iota // Gob is a marshalizer kind Gob )
Click to show internal directories.
Click to hide internal directories.