genericentities

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IEntity

type IEntity interface {
	IEntityHandle
	IFieldProvider
	EntityTypeName() string
	IdentityRepresentations() []string
	PrevEntities() map[string]IEntityHandle
	NextEntities() map[string]IEntityHandle
	ParentEntityCounts() map[string]int64
	ParentEntity(parentName string, index int64) IEntityHandle
	ChildEntityCounts() map[string]int64
	ChildEntity(childName string, index int64) IEntityHandle
}

type IEntityHandle

type IEntityHandle interface {
	// Non-nil
	BlockChain() chainreadinterface.IBlockChain
	// None or exactly one of these four will be non-nil
	MaybeBlock() chainreadinterface.IBlockHandle
	MaybeTransaction() chainreadinterface.ITransHandle
	MaybeTxi() chainreadinterface.ITxiHandle
	MaybeTxo() chainreadinterface.ITxoHandle
}

type IFieldProvider

type IFieldProvider interface {
	IntFieldNamesAvailable() []string
	StringFieldNamesAvailable() []string
	GetFieldTypeHint(fieldName string) string
	GetIntField(fieldName string) int64
	GetStringField(fieldName string) string
}

Jump to

Keyboard shortcuts

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