index

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2018 License: Apache-2.0 Imports: 3 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 {
	LatestStateRef record.Reference   // Amend or activate record
	AmendRefs      []record.Reference // 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
	LatestStateRef record.Reference   // Amend or activate record
	AppendRefs     []record.Reference // ObjectAppendRecord
}

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