Documentation
¶
Index ¶
- Constants
- Variables
- func NewFactory(b bus.Bus) controller.Factory
- type Config
- func (m *Config) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *Config) CloneVT() *Config
- func (this *Config) EqualMessageVT(thatMsg any) bool
- func (this *Config) EqualVT(that *Config) bool
- func (c *Config) EqualsConfig(other config.Config) bool
- func (c *Config) GetConfigID() string
- func (x *Config) GetRunDemo() bool
- func (x *Config) MarshalJSON() ([]byte, error)
- func (x *Config) MarshalProtoJSON(s *json.MarshalState)
- func (x *Config) MarshalProtoText() string
- func (m *Config) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Config) MarshalToVT(dAtA []byte) (int, error)
- func (m *Config) MarshalVT() (dAtA []byte, err error)
- func (*Config) ProtoMessage()
- func (x *Config) Reset()
- func (m *Config) SizeVT() (n int)
- func (x *Config) String() string
- func (x *Config) UnmarshalJSON(b []byte) error
- func (x *Config) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *Config) UnmarshalVT(dAtA []byte) error
- func (c *Config) Validate() error
- type Demo
- type ExampleProps
- func (m *ExampleProps) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *ExampleProps) CloneVT() *ExampleProps
- func (this *ExampleProps) EqualMessageVT(thatMsg any) bool
- func (this *ExampleProps) EqualVT(that *ExampleProps) bool
- func (x *ExampleProps) GetMsg() string
- func (x *ExampleProps) MarshalJSON() ([]byte, error)
- func (x *ExampleProps) MarshalProtoJSON(s *json.MarshalState)
- func (x *ExampleProps) MarshalProtoText() string
- func (m *ExampleProps) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ExampleProps) MarshalToVT(dAtA []byte) (int, error)
- func (m *ExampleProps) MarshalVT() (dAtA []byte, err error)
- func (*ExampleProps) ProtoMessage()
- func (x *ExampleProps) Reset()
- func (m *ExampleProps) SizeVT() (n int)
- func (x *ExampleProps) String() string
- func (x *ExampleProps) UnmarshalJSON(b []byte) error
- func (x *ExampleProps) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *ExampleProps) UnmarshalVT(dAtA []byte) error
Constants ¶
const ConfigID = ControllerID
ConfigID is the config identifier.
const ControllerID = "bldr/example/demo"
ControllerID is the controller id.
Variables ¶
var AssetPath string
AssetPath is an example of using the bldr:asset:href tag.
var ExampleEntrypoint bldr_web_bundler.WebBundlerOutput
ExampleEntrypoint is the example typescript entrypoint.
NOTE: you can also use bldr:esbuild instead of bldr:vite here!
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) EqualMessageVT ¶
func (*Config) EqualsConfig ¶
EqualsConfig checks if the config is equal to another.
func (*Config) GetConfigID ¶
GetConfigID returns the unique string for this configuration type.
func (*Config) GetRunDemo ¶
func (*Config) MarshalJSON ¶
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 (*Config) MarshalToSizedBufferVT ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) UnmarshalJSON ¶
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 ¶
type Demo ¶
type Demo struct {
*bus.BusController[*Config]
// contains filtered or unexported fields
}
Demo is a demo controller.
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