Beispiel #1
0
func (dm *clusterMutation) Serialize(writer typedio.Writer) {
	writer.WriteInt64(dm.version)
	writer.WriteUint16(uint16(len(dm.nodes)))

	for _, node := range dm.nodes {
		node.Serialize(writer)
	}

	// if data were persisted to disk, we don't make the cluster
	// since its not new data
	dm.notify = false
}
Beispiel #2
0
func (m *Int64Mutation) Serialize(writer typedio.Writer) {
	writer.WriteInt64(m.val)
}