bldr_example

package
v0.51.6 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigID = ControllerID

ConfigID is the config identifier.

View Source
const ControllerID = "bldr/example/demo"

ControllerID is the controller id.

Variables

View Source
var AssetPath string

AssetPath is an example of using the bldr:asset:href tag.

ExampleEntrypoint is the example typescript entrypoint.

NOTE: you can also use bldr:esbuild instead of bldr:vite here!

View Source
var Version = semver.MustParse("0.0.1")

Version is the controller version

Functions

func NewFactory

func NewFactory(b bus.Bus) controller.Factory

NewFactory constructs the demo controller factory.

Types

type Config

type Config struct {

	// RunDemo runs the full demo routine.
	RunDemo bool `protobuf:"varint,1,opt,name=run_demo,json=runDemo,proto3" json:"runDemo,omitempty"`
	// contains filtered or unexported fields
}

Config configures the Demo controller.

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 checks if the config is equal to another.

func (*Config) GetConfigID

func (c *Config) GetConfigID() string

GetConfigID returns the unique string for this configuration type.

func (*Config) GetRunDemo

func (x *Config) GetRunDemo() bool

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 validates the configuration.

type Demo

type Demo struct {
	*bus.BusController[*Config]
	// contains filtered or unexported fields
}

Demo is a demo controller.

func (*Demo) Execute

func (d *Demo) Execute(ctx context.Context) error

Execute executes the controller goroutine.

func (*Demo) HandleDirective

func (d *Demo) HandleDirective(ctx context.Context, di directive.Instance) ([]directive.Resolver, error)

HandleDirective asks if the handler can resolve the directive.

func (*Demo) RunDemo

func (d *Demo) RunDemo(ctx context.Context) error

DemoExecute is a full demo routine.

type ExampleProps

type ExampleProps struct {

	// Msg is the message to display.
	Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

ExampleProps contains properties for the example component.

func (*ExampleProps) CloneMessageVT

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

func (*ExampleProps) CloneVT

func (m *ExampleProps) CloneVT() *ExampleProps

func (*ExampleProps) EqualMessageVT

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

func (*ExampleProps) EqualVT

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

func (*ExampleProps) GetMsg

func (x *ExampleProps) GetMsg() string

func (*ExampleProps) MarshalJSON

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

MarshalJSON marshals the ExampleProps to JSON.

func (*ExampleProps) MarshalProtoJSON

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

MarshalProtoJSON marshals the ExampleProps message to JSON.

func (*ExampleProps) MarshalProtoText

func (x *ExampleProps) MarshalProtoText() string

func (*ExampleProps) MarshalToSizedBufferVT

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

func (*ExampleProps) MarshalToVT

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

func (*ExampleProps) MarshalVT

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

func (*ExampleProps) ProtoMessage

func (*ExampleProps) ProtoMessage()

func (*ExampleProps) Reset

func (x *ExampleProps) Reset()

func (*ExampleProps) SizeVT

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

func (*ExampleProps) String

func (x *ExampleProps) String() string

func (*ExampleProps) UnmarshalJSON

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

UnmarshalJSON unmarshals the ExampleProps from JSON.

func (*ExampleProps) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the ExampleProps message from JSON.

func (*ExampleProps) UnmarshalVT

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

Directories

Path Synopsis
Package example_cli provides example CLI commands for the bldr demo.
Package example_cli provides example CLI commands for the bldr demo.

Jump to

Keyboard shortcuts

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