schema

package
v0.0.0-...-6f8bca6 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFieldWithId

func GetFieldWithId(v interface{}, fieldID uint64) (reflect.Value, error)

func GetString

func GetString(o nodeservice.ObjectGetter, digest utils.Digest) (string, error)

func GetStruct

func GetStruct(o nodeservice.ObjectGetter, digest utils.Digest, v interface{}) error

func GetUint32

func GetUint32(o nodeservice.ObjectGetter, digest utils.Digest) (uint32, error)

func PutString

func PutString(o nodeservice.ObjectStore, v string) (utils.Digest, error)

func PutStruct

func PutStruct(o nodeservice.ObjectStore, v interface{}) (utils.Digest, error)

func PutUint32

func PutUint32(o nodeservice.ObjectStore, v uint32) (utils.Digest, error)
func ResolveLink(o nodeservice.ObjectGetter, base utils.Digest, path []utils.Selector) (utils.Digest, error)

Types

type Field

type Field struct {
	FieldID uint32 `ent:"0"`
	Name    string `ent:"1"`
	KindID  uint32 `ent:"2"`
	Raw     uint32 `ent:"3"`
}

type Kind

type Kind struct {
	KindID uint32  `ent:"0"`
	Name   string  `ent:"1"`
	Fields []Field `ent:"2"`
}

type Schema

type Schema struct {
	// #0 is the root node kind.
	Kinds []Kind `ent:"0"`
}

Jump to

Keyboard shortcuts

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