component

package
v0.2400.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Overview

Package component contains types for runtime components.

Index

Constants

This section is empty.

Variables

View Source
var ID_RONL = ID{Kind: RONL, Name: ""} //nolint: revive

ID_RONL is the identifier of the RONL component.

Functions

This section is empty.

Types

type ID

type ID struct {
	// Kind is the component kind.
	Kind Kind `json:"kind"`

	// Name is an optional component name.
	Name string `json:"name,omitempty"`
}

ID is a unique component identifier.

func (ID) MarshalText

func (c ID) MarshalText() ([]byte, error)

MarshalText serializes the component identifier into text form.

func (ID) String

func (c ID) String() string

String returns a string representation of the component identifier.

func (*ID) UnmarshalText

func (c *ID) UnmarshalText(text []byte) error

UnmarshalText deserializes the component identifier from text form.

type Kind

type Kind string

Kind is the kind of a component.

const (
	// RONL is the on-chain logic component.
	RONL Kind = "ronl"
	// ROFL is the off-chain logic component.
	ROFL Kind = "rofl"
)

Jump to

Keyboard shortcuts

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