Documentation ¶
Overview ¶
Package index represents indexes and meta information for records.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeClassLifeline ¶
func EncodeClassLifeline(index *ClassLifeline) ([]byte, error)
EncodeClassLifeline converts lifeline index into binary format
func EncodeObjectLifeline ¶
func EncodeObjectLifeline(index *ObjectLifeline) ([]byte, error)
EncodeObjectLifeline converts lifeline index into binary format.
Types ¶
type ClassLifeline ¶
type ClassLifeline struct { LatestState record.ID // Amend or activate record AmendRefs []record.ID // ClassAmendRecord }
ClassLifeline represents meta information for record object
func DecodeClassLifeline ¶
func DecodeClassLifeline(buf []byte) (*ClassLifeline, error)
DecodeClassLifeline converts byte array into lifeline index struct
type ObjectLifeline ¶
type ObjectLifeline struct { ClassRef record.Reference LatestState record.ID // Amend or activate record Children []record.Reference // ActivateObjectRecord Delegates map[core.RecordRef]record.Reference }
ObjectLifeline represents meta information for record object
func DecodeObjectLifeline ¶
func DecodeObjectLifeline(buf []byte) (*ObjectLifeline, error)
DecodeObjectLifeline converts byte array into lifeline index struct.
Click to show internal directories.
Click to hide internal directories.