types

package
v1.0.10-0...-7349ede Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdditionalSection

type AdditionalSection struct {
	RecordExtensions []Record
}

type DropContinue

type DropContinue struct {
	PrevDropHash [][]byte
}

type DropStart

type DropStart struct {
	PulseData           Pulse
	JetDropPrefix       string
	JetDropPrefixLength uint
}

type JetDrop

type JetDrop struct {
	MainSection *MainSection
	Sections    []Section
	RawData     []byte
	Hash        []byte
}

type MainSection

type MainSection struct {
	Start        DropStart
	DropContinue DropContinue
	Records      []Record
}

func (MainSection) IsSection

func (m MainSection) IsSection() bool

type PlatformPulseData

type PlatformPulseData struct {
	Pulse   *exporter.FullPulse
	Records []*exporter.Record
}

PlatformPulseData represents on the missing struct in the Platform

type Pulse

type Pulse struct {
	PulseNo         int64
	EpochPulseNo    int64
	PulseTimestamp  int64
	NextPulseNumber int64
	PrevPulseNumber int64
}

type Record

type Record struct {
	Type                RecordType
	Ref                 Reference
	ObjectReference     Reference
	PrototypeReference  Reference
	PrevRecordReference Reference
	RecordPayload       []byte
	Hash                []byte
	RawData             []byte
	Order               uint32
}

type RecordType

type RecordType int
const (
	// state type means activate, amend, deactivate records
	STATE RecordType = iota
	REQUEST
	RESULT
)

type Reference

type Reference []byte

Reference based on Insolar.Reference

type Section

type Section interface {
	IsSection() bool
}

Jump to

Keyboard shortcuts

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