node

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2025 License: Apache-2.0 Imports: 8 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecuteCallbackFunc

type ExecuteCallbackFunc = func() error

type Node added in v0.4.1

type Node struct {
	// contains filtered or unexported fields
}

Node is a struct that allows the developer to compose sequentially multiple SDKs. The struct offers also a service locator that the SDKs can use to register services.

func NewFromConfPath

func NewFromConfPath(confPath string) *Node

func (*Node) AddSDK added in v0.4.1

func (n *Node) AddSDK(sdk SDK)

func (*Node) GetService added in v0.4.1

func (n *Node) GetService(v interface{}) (interface{}, error)

func (*Node) ID added in v0.4.1

func (n *Node) ID() string

func (*Node) InstallSDK added in v0.4.1

func (n *Node) InstallSDK(p SDK) error

func (*Node) RegisterService added in v0.4.1

func (n *Node) RegisterService(service interface{}) error

func (*Node) Start added in v0.4.1

func (n *Node) Start() (err error)

func (*Node) Stop added in v0.4.1

func (n *Node) Stop()

type PostStart

type PostStart interface {
	PostStart(context.Context) error
}

PostStart enables a platform to execute additional tasks after all platforms have started

type SDK added in v0.4.1

type SDK interface {
	// Install signals the SDK that it is time to install itself.
	Install() error

	// Start signals the SDK that it is time to start any computation/server this SDK offers.
	Start(ctx context.Context) error
}

SDK models an abstract kit that can be installed and started.

Jump to

Keyboard shortcuts

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