Documentation ¶
Index ¶
- Variables
- type ConfigSet
- func (*ConfigSet) Descriptor() ([]byte, []int)deprecated
- func (this *ConfigSet) EqualVT(that *ConfigSet) bool
- func (x *ConfigSet) GetConfigurations() map[string]*ControllerConfig
- func (m *ConfigSet) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ConfigSet) MarshalToVT(dAtA []byte) (int, error)
- func (m *ConfigSet) MarshalVT() (dAtA []byte, err error)
- func (*ConfigSet) ProtoMessage()
- func (x *ConfigSet) ProtoReflect() protoreflect.Message
- func (x *ConfigSet) Reset()
- func (c *ConfigSet) Resolve(ctx context.Context, b bus.Bus) (configset.ConfigSet, error)
- func (m *ConfigSet) SizeVT() (n int)
- func (x *ConfigSet) String() string
- func (m *ConfigSet) UnmarshalVT(dAtA []byte) error
- type ConfigSetMap
- type ControllerConfig
- func (*ControllerConfig) Descriptor() ([]byte, []int)deprecated
- func (this *ControllerConfig) EqualVT(that *ControllerConfig) bool
- func (x *ControllerConfig) GetConfig() []byte
- func (x *ControllerConfig) GetId() string
- func (x *ControllerConfig) GetRevision() uint64
- func (m *ControllerConfig) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ControllerConfig) MarshalToVT(dAtA []byte) (int, error)
- func (m *ControllerConfig) MarshalVT() (dAtA []byte, err error)
- func (*ControllerConfig) ProtoMessage()
- func (x *ControllerConfig) ProtoReflect() protoreflect.Message
- func (x *ControllerConfig) Reset()
- func (c *ControllerConfig) Resolve(ctx context.Context, b bus.Bus) (configset.ControllerConfig, error)
- func (m *ControllerConfig) SizeVT() (n int)
- func (x *ControllerConfig) String() string
- func (m *ControllerConfig) UnmarshalVT(dAtA []byte) error
- func (c *ControllerConfig) Validate() error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLength = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflow = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group") )
View Source
var ( // ErrControllerConfigIdEmpty is returned if the controller config id was empty. ErrControllerConfigIdEmpty = errors.New("controller config id empty") )
View Source
var File_github_com_aperturerobotics_controllerbus_controller_configset_proto_configset_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ConfigSet ¶
type ConfigSet struct { // Configurations contains the controller configurations. Configurations map[string]*ControllerConfig `` /* 169-byte string literal not displayed */ // contains filtered or unexported fields }
ConfigSet contains a configuration set.
func NewConfigSet ¶
NewConfigSet constructs a configset from a configset.ConfigSet.
func (*ConfigSet) Descriptor
deprecated
func (*ConfigSet) GetConfigurations ¶
func (x *ConfigSet) GetConfigurations() map[string]*ControllerConfig
func (*ConfigSet) MarshalToSizedBufferVT ¶ added in v0.10.0
func (*ConfigSet) MarshalToVT ¶ added in v0.10.0
func (*ConfigSet) ProtoMessage ¶
func (*ConfigSet) ProtoMessage()
func (*ConfigSet) ProtoReflect ¶ added in v0.10.1
func (x *ConfigSet) ProtoReflect() protoreflect.Message
func (*ConfigSet) UnmarshalVT ¶ added in v0.10.0
type ConfigSetMap ¶
type ConfigSetMap map[string]*ControllerConfig
ConfigSetMap implements the controllerbus.ConfigSet as protobuf. Cast the proto type to this type.
func NewConfigSetMap ¶
func NewConfigSetMap(c configset.ConfigSet) (ConfigSetMap, error)
NewConfigSetMap packs a configset to a proto object.
type ControllerConfig ¶
type ControllerConfig struct { // Id is the config ID. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Revision is the revision number of the configuration. Revision uint64 `protobuf:"varint,2,opt,name=revision,proto3" json:"revision,omitempty"` // Config is the configuration object in protobuf form. Config []byte `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"` // contains filtered or unexported fields }
ControllerConfig contains a controller configuration.
func NewControllerConfig ¶
func NewControllerConfig(c configset.ControllerConfig) (*ControllerConfig, error)
NewControllerConfig constructs a new controller config.
func (*ControllerConfig) Descriptor
deprecated
func (*ControllerConfig) Descriptor() ([]byte, []int)
Deprecated: Use ControllerConfig.ProtoReflect.Descriptor instead.
func (*ControllerConfig) EqualVT ¶ added in v0.10.0
func (this *ControllerConfig) EqualVT(that *ControllerConfig) bool
func (*ControllerConfig) GetConfig ¶
func (x *ControllerConfig) GetConfig() []byte
func (*ControllerConfig) GetId ¶
func (x *ControllerConfig) GetId() string
func (*ControllerConfig) GetRevision ¶
func (x *ControllerConfig) GetRevision() uint64
func (*ControllerConfig) MarshalToSizedBufferVT ¶ added in v0.10.0
func (m *ControllerConfig) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*ControllerConfig) MarshalToVT ¶ added in v0.10.0
func (m *ControllerConfig) MarshalToVT(dAtA []byte) (int, error)
func (*ControllerConfig) MarshalVT ¶ added in v0.10.0
func (m *ControllerConfig) MarshalVT() (dAtA []byte, err error)
func (*ControllerConfig) ProtoMessage ¶
func (*ControllerConfig) ProtoMessage()
func (*ControllerConfig) ProtoReflect ¶ added in v0.10.1
func (x *ControllerConfig) ProtoReflect() protoreflect.Message
func (*ControllerConfig) Reset ¶
func (x *ControllerConfig) Reset()
func (*ControllerConfig) Resolve ¶
func (c *ControllerConfig) Resolve(ctx context.Context, b bus.Bus) (configset.ControllerConfig, error)
Resolve resolves the config into a configset.ControllerConfig
func (*ControllerConfig) SizeVT ¶ added in v0.10.0
func (m *ControllerConfig) SizeVT() (n int)
func (*ControllerConfig) String ¶
func (x *ControllerConfig) String() string
func (*ControllerConfig) UnmarshalVT ¶ added in v0.10.0
func (m *ControllerConfig) UnmarshalVT(dAtA []byte) error
func (*ControllerConfig) Validate ¶
func (c *ControllerConfig) Validate() error
Validate performs cursory validation of the controller config.
Click to show internal directories.
Click to hide internal directories.