Help us shape the future of Go! Take the 2026 Go Developer Survey

entity

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entity

type Entity interface {
	// GetEntityID returns the entity identifier.
	GetEntityID() string
	// GetEntityTypeName returns the entity type name.
	GetEntityTypeName() string
}

Entity is a string-ID identified node in the entity graph.

type Ref

type Ref interface {
	// GetEntityRefId returns the referenced entity ID.
	GetEntityRefId() string
	// GetEntityRefTypeName returns the referenced entity type name.
	GetEntityRefTypeName() string
}

Ref is a reference to another entity.

func NewEntityRef

func NewEntityRef(ent Entity) Ref

NewEntityRef builds a new EntityRef with an entity handle.

func NewEntityRefWithID

func NewEntityRefWithID(refID, refTypeName string) Ref

NewEntityRefWithID builds a new EntityRef with an id and type name.

Jump to

Keyboard shortcuts

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