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

flowgraph_plugin

package
v0.57.28 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package flowgraph_plugin supplies the Stream Echo Device node and its settings editor.

Index

Constants

View Source
const ConfigID = ControllerID

ConfigID selects the Stream Echo plugin controller.

View Source
const ControllerID = "plugin/flowgraph"

ControllerID selects the Stream Echo plugin controller.

View Source
const PluginID = "spacewave-flowgraph"

PluginID identifies the manifest shipping this node type and editor.

View Source
const StreamEchoNodeTypeID = "flowgraph/stream-echo"

StreamEchoNodeTypeID selects the plugin's echo service.

Variables

EditorEntrypoint contains the editor asset URL supplied by the plugin builder.

View Source
var Version = controller.MustParseVersion("0.0.1")

Version is the plugin controller version.

Functions

func NewFactory

func NewFactory(b bus.Bus) controller.Factory

NewFactory constructs the plugin startup factory for Bldr's goPkgs discovery.

func Register

func Register(ctx context.Context, client *resource_client.Client, root srpc.Client, editorPath string) (func() error, error)

Register publishes the Stream Echo compiler and editor through the core Resource client. The returned release withdraws both registrations and detaches the compiler.

Types

type Config

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

Config starts the Stream Echo node type plugin.

func (*Config) CloneMessageVT

func (m *Config) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*Config) CloneVT

func (m *Config) CloneVT() *Config

func (*Config) EqualMessageVT

func (this *Config) EqualMessageVT(thatMsg any) bool

func (*Config) EqualVT

func (this *Config) EqualVT(that *Config) bool

func (*Config) EqualsConfig

func (c *Config) EqualsConfig(other config.Config) bool

EqualsConfig compares plugin startup configurations.

func (*Config) GetConfigID

func (c *Config) GetConfigID() string

GetConfigID returns the plugin controller config identifier.

func (*Config) MarshalJSON

func (x *Config) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Config to JSON.

func (*Config) MarshalProtoJSON

func (x *Config) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Config message to JSON.

func (*Config) MarshalProtoText

func (x *Config) MarshalProtoText() string

func (*Config) MarshalToSizedBufferVT

func (m *Config) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Config) MarshalToVT

func (m *Config) MarshalToVT(dAtA []byte) (int, error)

func (*Config) MarshalVT

func (m *Config) MarshalVT() (dAtA []byte, err error)

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) Reset

func (x *Config) Reset()

func (*Config) SizeVT

func (m *Config) SizeVT() (n int)

func (*Config) String

func (x *Config) String() string

func (*Config) UnmarshalJSON

func (x *Config) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Config from JSON.

func (*Config) UnmarshalProtoJSON

func (x *Config) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Config message from JSON.

func (*Config) UnmarshalVT

func (m *Config) UnmarshalVT(dAtA []byte) error

func (*Config) Validate

func (c *Config) Validate() error

Validate accepts the plugin's empty startup configuration.

type Controller

type Controller struct {
	// BusController supplies the plugin-local bus and lifetime.
	*bus.BusController[*Config]
}

Controller publishes the plugin's node type and editor until the bus removes it.

func (*Controller) Execute

func (c *Controller) Execute(ctx context.Context) error

Execute registers the plugin capabilities over the core Resource boundary.

type StreamEcho

type StreamEcho struct{}

StreamEcho serves a peer stream that returns every byte sent to it.

func NewStreamEcho

func NewStreamEcho() *StreamEcho

NewStreamEcho constructs the plugin's node type.

func (*StreamEcho) Compile

Compile serves every connected stream, or the explicit protocol_id parameter.

func (*StreamEcho) GetConfigIDs

func (n *StreamEcho) GetConfigIDs() []string

GetConfigIDs declares the existing stream echo controller.

func (*StreamEcho) GetDisplayName

func (n *StreamEcho) GetDisplayName() string

GetDisplayName returns the name shown for the node type.

func (*StreamEcho) GetPorts

func (n *StreamEcho) GetPorts() []*s4wave_flowgraph.FlowgraphPort

GetPorts declares the stream output that Local Ports may connect to.

Jump to

Keyboard shortcuts

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