index

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL