kernel

package
v0.0.0-...-3078d79 Latest Latest
Warning

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

Go to latest
Published: May 17, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SchemaName of ISCN kernel
	SchemaName = "iscn"
)

Variables

This section is empty.

Functions

func Register

func Register()

Register registers the schema of ISCN kernel block

Types

type ID

type ID struct {
	*block.DataBase
	// contains filtered or unexported fields
}

ID is a data handler for the ISCN ID

func NewID

func NewID() *ID

NewID creates an ISCN ID

func (*ID) Decode

func (d *ID) Decode(data interface{}, m *map[string]interface{}) error

Decode ID

func (*ID) Encode

func (d *ID) Encode(m *map[string]interface{}) error

Encode ID

func (*ID) GetID

func (d *ID) GetID() string

GetID returns the human readable ID

func (*ID) Prototype

func (d *ID) Prototype() block.Data

Prototype creates a prototype ID

func (*ID) Resolve

func (d *ID) Resolve(path []string) (interface{}, []string, error)

Resolve resolves the value

func (*ID) Set

func (d *ID) Set(data interface{}) error

Set the value of ID

func (*ID) ToJSON

func (d *ID) ToJSON(om *ordered.OrderedMap) error

ToJSON prepares the data for MarshalJSON

Jump to

Keyboard shortcuts

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