Documentation ¶
Index ¶
- Constants
- Variables
- type Ack
- type DescriptorSize
- func (DescriptorSize) Descriptor() protoreflect.EnumDescriptor
- func (x DescriptorSize) Enum() *DescriptorSize
- func (DescriptorSize) EnumDescriptor() ([]byte, []int)deprecated
- func (x DescriptorSize) Number() protoreflect.EnumNumber
- func (x DescriptorSize) String() string
- func (DescriptorSize) Type() protoreflect.EnumType
- func (x *DescriptorSize) UnmarshalJSON(b []byte) errordeprecated
- type FieldType
- func (FieldType) Descriptor() protoreflect.EnumDescriptor
- func (x FieldType) Enum() *FieldType
- func (FieldType) EnumDescriptor() ([]byte, []int)deprecated
- func (x FieldType) Number() protoreflect.EnumNumber
- func (x FieldType) String() string
- func (FieldType) Type() protoreflect.EnumType
- func (x *FieldType) UnmarshalJSON(b []byte) errordeprecated
- type FromSplitflap
- func (*FromSplitflap) Descriptor() ([]byte, []int)deprecated
- func (x *FromSplitflap) GetAck() *Ack
- func (x *FromSplitflap) GetLog() *Log
- func (m *FromSplitflap) GetPayload() isFromSplitflap_Payload
- func (x *FromSplitflap) GetSplitflapState() *SplitflapState
- func (x *FromSplitflap) GetSupervisorState() *SupervisorState
- func (*FromSplitflap) ProtoMessage()
- func (x *FromSplitflap) ProtoReflect() protoreflect.Message
- func (x *FromSplitflap) Reset()
- func (x *FromSplitflap) String() string
- type FromSplitflap_Ack
- type FromSplitflap_Log
- type FromSplitflap_SplitflapState
- type FromSplitflap_SupervisorState
- type IntSize
- func (IntSize) Descriptor() protoreflect.EnumDescriptor
- func (x IntSize) Enum() *IntSize
- func (IntSize) EnumDescriptor() ([]byte, []int)deprecated
- func (x IntSize) Number() protoreflect.EnumNumber
- func (x IntSize) String() string
- func (IntSize) Type() protoreflect.EnumType
- func (x *IntSize) UnmarshalJSON(b []byte) errordeprecated
- type Log
- type NanoPBOptions
- func (*NanoPBOptions) Descriptor() ([]byte, []int)deprecated
- func (x *NanoPBOptions) GetAnonymousOneof() bool
- func (x *NanoPBOptions) GetCallbackDatatype() string
- func (x *NanoPBOptions) GetCallbackFunction() string
- func (x *NanoPBOptions) GetDefaultHas() bool
- func (x *NanoPBOptions) GetDescriptorsize() DescriptorSize
- func (x *NanoPBOptions) GetEnumToString() bool
- func (x *NanoPBOptions) GetExclude() []string
- func (x *NanoPBOptions) GetFixedCount() bool
- func (x *NanoPBOptions) GetFixedLength() bool
- func (x *NanoPBOptions) GetInclude() []string
- func (x *NanoPBOptions) GetIntSize() IntSize
- func (x *NanoPBOptions) GetLongNames() bool
- func (x *NanoPBOptions) GetMangleNames() TypenameMangling
- func (x *NanoPBOptions) GetMaxCount() int32
- func (x *NanoPBOptions) GetMaxLength() int32
- func (x *NanoPBOptions) GetMaxSize() int32
- func (x *NanoPBOptions) GetMsgid() uint32
- func (x *NanoPBOptions) GetNoUnions() bool
- func (x *NanoPBOptions) GetPackage() string
- func (x *NanoPBOptions) GetPackedEnum() bool
- func (x *NanoPBOptions) GetPackedStruct() bool
- func (x *NanoPBOptions) GetProto3() bool
- func (x *NanoPBOptions) GetProto3SingularMsgs() bool
- func (x *NanoPBOptions) GetSkipMessage() bool
- func (x *NanoPBOptions) GetSortByTag() bool
- func (x *NanoPBOptions) GetSubmsgCallback() bool
- func (x *NanoPBOptions) GetType() FieldType
- func (x *NanoPBOptions) GetTypeOverride() descriptor.FieldDescriptorProto_Type
- func (*NanoPBOptions) ProtoMessage()
- func (x *NanoPBOptions) ProtoReflect() protoreflect.Message
- func (x *NanoPBOptions) Reset()
- func (x *NanoPBOptions) String() string
- type RequestState
- type Settings
- func (*Settings) Descriptor() ([]byte, []int)deprecated
- func (x *Settings) GetAnimationStyle() Settings_AnimationStyle
- func (x *Settings) GetForceFullRotation() bool
- func (x *Settings) GetMaxMoving() uint32
- func (x *Settings) GetStartDelayMillis() uint32
- func (*Settings) ProtoMessage()
- func (x *Settings) ProtoReflect() protoreflect.Message
- func (x *Settings) Reset()
- func (x *Settings) String() string
- type Settings_AnimationStyle
- func (Settings_AnimationStyle) Descriptor() protoreflect.EnumDescriptor
- func (x Settings_AnimationStyle) Enum() *Settings_AnimationStyle
- func (Settings_AnimationStyle) EnumDescriptor() ([]byte, []int)deprecated
- func (x Settings_AnimationStyle) Number() protoreflect.EnumNumber
- func (x Settings_AnimationStyle) String() string
- func (Settings_AnimationStyle) Type() protoreflect.EnumType
- type SplitflapCommand
- func (*SplitflapCommand) Descriptor() ([]byte, []int)deprecated
- func (x *SplitflapCommand) GetModules() []*SplitflapCommand_ModuleCommand
- func (*SplitflapCommand) ProtoMessage()
- func (x *SplitflapCommand) ProtoReflect() protoreflect.Message
- func (x *SplitflapCommand) Reset()
- func (x *SplitflapCommand) String() string
- type SplitflapCommand_ModuleCommand
- func (*SplitflapCommand_ModuleCommand) Descriptor() ([]byte, []int)deprecated
- func (x *SplitflapCommand_ModuleCommand) GetAction() SplitflapCommand_ModuleCommand_Action
- func (x *SplitflapCommand_ModuleCommand) GetParam() uint32
- func (*SplitflapCommand_ModuleCommand) ProtoMessage()
- func (x *SplitflapCommand_ModuleCommand) ProtoReflect() protoreflect.Message
- func (x *SplitflapCommand_ModuleCommand) Reset()
- func (x *SplitflapCommand_ModuleCommand) String() string
- type SplitflapCommand_ModuleCommand_Action
- func (SplitflapCommand_ModuleCommand_Action) Descriptor() protoreflect.EnumDescriptor
- func (x SplitflapCommand_ModuleCommand_Action) Enum() *SplitflapCommand_ModuleCommand_Action
- func (SplitflapCommand_ModuleCommand_Action) EnumDescriptor() ([]byte, []int)deprecated
- func (x SplitflapCommand_ModuleCommand_Action) Number() protoreflect.EnumNumber
- func (x SplitflapCommand_ModuleCommand_Action) String() string
- func (SplitflapCommand_ModuleCommand_Action) Type() protoreflect.EnumType
- type SplitflapConfig
- func (*SplitflapConfig) Descriptor() ([]byte, []int)deprecated
- func (x *SplitflapConfig) GetModules() []*SplitflapConfig_ModuleConfig
- func (x *SplitflapConfig) GetSettings() *Settings
- func (*SplitflapConfig) ProtoMessage()
- func (x *SplitflapConfig) ProtoReflect() protoreflect.Message
- func (x *SplitflapConfig) Reset()
- func (x *SplitflapConfig) String() string
- type SplitflapConfig_ModuleConfig
- func (*SplitflapConfig_ModuleConfig) Descriptor() ([]byte, []int)deprecated
- func (x *SplitflapConfig_ModuleConfig) GetMovementNonce() uint32
- func (x *SplitflapConfig_ModuleConfig) GetResetNonce() uint32
- func (x *SplitflapConfig_ModuleConfig) GetTargetFlapIndex() uint32
- func (*SplitflapConfig_ModuleConfig) ProtoMessage()
- func (x *SplitflapConfig_ModuleConfig) ProtoReflect() protoreflect.Message
- func (x *SplitflapConfig_ModuleConfig) Reset()
- func (x *SplitflapConfig_ModuleConfig) String() string
- type SplitflapState
- func (*SplitflapState) Descriptor() ([]byte, []int)deprecated
- func (x *SplitflapState) GetModules() []*SplitflapState_ModuleState
- func (x *SplitflapState) GetSettings() *Settings
- func (*SplitflapState) ProtoMessage()
- func (x *SplitflapState) ProtoReflect() protoreflect.Message
- func (x *SplitflapState) Reset()
- func (x *SplitflapState) String() string
- type SplitflapState_ModuleState
- func (*SplitflapState_ModuleState) Descriptor() ([]byte, []int)deprecated
- func (x *SplitflapState_ModuleState) GetCountMissedHome() uint32
- func (x *SplitflapState_ModuleState) GetCountUnexpectedHome() uint32
- func (x *SplitflapState_ModuleState) GetFlapIndex() uint32
- func (x *SplitflapState_ModuleState) GetHomeState() bool
- func (x *SplitflapState_ModuleState) GetMoving() bool
- func (x *SplitflapState_ModuleState) GetState() SplitflapState_ModuleState_State
- func (*SplitflapState_ModuleState) ProtoMessage()
- func (x *SplitflapState_ModuleState) ProtoReflect() protoreflect.Message
- func (x *SplitflapState_ModuleState) Reset()
- func (x *SplitflapState_ModuleState) String() string
- type SplitflapState_ModuleState_State
- func (SplitflapState_ModuleState_State) Descriptor() protoreflect.EnumDescriptor
- func (x SplitflapState_ModuleState_State) Enum() *SplitflapState_ModuleState_State
- func (SplitflapState_ModuleState_State) EnumDescriptor() ([]byte, []int)deprecated
- func (x SplitflapState_ModuleState_State) Number() protoreflect.EnumNumber
- func (x SplitflapState_ModuleState_State) String() string
- func (SplitflapState_ModuleState_State) Type() protoreflect.EnumType
- type SupervisorState
- func (*SupervisorState) Descriptor() ([]byte, []int)deprecated
- func (x *SupervisorState) GetFaultInfo() *SupervisorState_FaultInfo
- func (x *SupervisorState) GetPowerChannels() []*SupervisorState_PowerChannelState
- func (x *SupervisorState) GetState() SupervisorState_State
- func (x *SupervisorState) GetUptimeMillis() uint32
- func (*SupervisorState) ProtoMessage()
- func (x *SupervisorState) ProtoReflect() protoreflect.Message
- func (x *SupervisorState) Reset()
- func (x *SupervisorState) String() string
- type SupervisorState_FaultInfo
- func (*SupervisorState_FaultInfo) Descriptor() ([]byte, []int)deprecated
- func (x *SupervisorState_FaultInfo) GetMsg() string
- func (x *SupervisorState_FaultInfo) GetTsMillis() uint32
- func (x *SupervisorState_FaultInfo) GetType() SupervisorState_FaultInfo_FaultType
- func (*SupervisorState_FaultInfo) ProtoMessage()
- func (x *SupervisorState_FaultInfo) ProtoReflect() protoreflect.Message
- func (x *SupervisorState_FaultInfo) Reset()
- func (x *SupervisorState_FaultInfo) String() string
- type SupervisorState_FaultInfo_FaultType
- func (SupervisorState_FaultInfo_FaultType) Descriptor() protoreflect.EnumDescriptor
- func (x SupervisorState_FaultInfo_FaultType) Enum() *SupervisorState_FaultInfo_FaultType
- func (SupervisorState_FaultInfo_FaultType) EnumDescriptor() ([]byte, []int)deprecated
- func (x SupervisorState_FaultInfo_FaultType) Number() protoreflect.EnumNumber
- func (x SupervisorState_FaultInfo_FaultType) String() string
- func (SupervisorState_FaultInfo_FaultType) Type() protoreflect.EnumType
- type SupervisorState_PowerChannelState
- func (*SupervisorState_PowerChannelState) Descriptor() ([]byte, []int)deprecated
- func (x *SupervisorState_PowerChannelState) GetCurrentAmps() float32
- func (x *SupervisorState_PowerChannelState) GetOn() bool
- func (x *SupervisorState_PowerChannelState) GetVoltageVolts() float32
- func (*SupervisorState_PowerChannelState) ProtoMessage()
- func (x *SupervisorState_PowerChannelState) ProtoReflect() protoreflect.Message
- func (x *SupervisorState_PowerChannelState) Reset()
- func (x *SupervisorState_PowerChannelState) String() string
- type SupervisorState_State
- func (SupervisorState_State) Descriptor() protoreflect.EnumDescriptor
- func (x SupervisorState_State) Enum() *SupervisorState_State
- func (SupervisorState_State) EnumDescriptor() ([]byte, []int)deprecated
- func (x SupervisorState_State) Number() protoreflect.EnumNumber
- func (x SupervisorState_State) String() string
- func (SupervisorState_State) Type() protoreflect.EnumType
- type ToSplitflap
- func (*ToSplitflap) Descriptor() ([]byte, []int)deprecated
- func (x *ToSplitflap) GetNonce() uint32
- func (m *ToSplitflap) GetPayload() isToSplitflap_Payload
- func (x *ToSplitflap) GetRequestState() *RequestState
- func (x *ToSplitflap) GetSplitflapCommand() *SplitflapCommand
- func (x *ToSplitflap) GetSplitflapConfig() *SplitflapConfig
- func (*ToSplitflap) ProtoMessage()
- func (x *ToSplitflap) ProtoReflect() protoreflect.Message
- func (x *ToSplitflap) Reset()
- func (x *ToSplitflap) String() string
- type ToSplitflap_RequestState
- type ToSplitflap_SplitflapCommand
- type ToSplitflap_SplitflapConfig
- type TypenameMangling
- func (TypenameMangling) Descriptor() protoreflect.EnumDescriptor
- func (x TypenameMangling) Enum() *TypenameMangling
- func (TypenameMangling) EnumDescriptor() ([]byte, []int)deprecated
- func (x TypenameMangling) Number() protoreflect.EnumNumber
- func (x TypenameMangling) String() string
- func (TypenameMangling) Type() protoreflect.EnumType
- func (x *TypenameMangling) UnmarshalJSON(b []byte) errordeprecated
Constants ¶
const ( Default_NanoPBOptions_IntSize = IntSize_IS_DEFAULT Default_NanoPBOptions_Type = FieldType_FT_DEFAULT Default_NanoPBOptions_LongNames = bool(true) Default_NanoPBOptions_PackedStruct = bool(false) Default_NanoPBOptions_PackedEnum = bool(false) Default_NanoPBOptions_SkipMessage = bool(false) Default_NanoPBOptions_NoUnions = bool(false) Default_NanoPBOptions_AnonymousOneof = bool(false) Default_NanoPBOptions_Proto3 = bool(false) Default_NanoPBOptions_Proto3SingularMsgs = bool(false) Default_NanoPBOptions_EnumToString = bool(false) Default_NanoPBOptions_FixedLength = bool(false) Default_NanoPBOptions_FixedCount = bool(false) Default_NanoPBOptions_SubmsgCallback = bool(false) Default_NanoPBOptions_MangleNames = TypenameMangling_M_NONE Default_NanoPBOptions_CallbackDatatype = string("pb_callback_t") Default_NanoPBOptions_CallbackFunction = string("pb_default_field_callback") Default_NanoPBOptions_Descriptorsize = DescriptorSize_DS_AUTO Default_NanoPBOptions_DefaultHas = bool(false) Default_NanoPBOptions_SortByTag = bool(true) )
Default values for NanoPBOptions fields.
Variables ¶
var ( FieldType_name = map[int32]string{ 0: "FT_DEFAULT", 1: "FT_CALLBACK", 4: "FT_POINTER", 2: "FT_STATIC", 3: "FT_IGNORE", 5: "FT_INLINE", } FieldType_value = map[string]int32{ "FT_DEFAULT": 0, "FT_CALLBACK": 1, "FT_POINTER": 4, "FT_STATIC": 2, "FT_IGNORE": 3, "FT_INLINE": 5, } )
Enum value maps for FieldType.
var ( IntSize_name = map[int32]string{ 0: "IS_DEFAULT", 8: "IS_8", 16: "IS_16", 32: "IS_32", 64: "IS_64", } IntSize_value = map[string]int32{ "IS_DEFAULT": 0, "IS_8": 8, "IS_16": 16, "IS_32": 32, "IS_64": 64, } )
Enum value maps for IntSize.
var ( TypenameMangling_name = map[int32]string{ 0: "M_NONE", 1: "M_STRIP_PACKAGE", 2: "M_FLATTEN", 3: "M_PACKAGE_INITIALS", } TypenameMangling_value = map[string]int32{ "M_NONE": 0, "M_STRIP_PACKAGE": 1, "M_FLATTEN": 2, "M_PACKAGE_INITIALS": 3, } )
Enum value maps for TypenameMangling.
var ( DescriptorSize_name = map[int32]string{ 0: "DS_AUTO", 1: "DS_1", 2: "DS_2", 4: "DS_4", 8: "DS_8", } DescriptorSize_value = map[string]int32{ "DS_AUTO": 0, "DS_1": 1, "DS_2": 2, "DS_4": 4, "DS_8": 8, } )
Enum value maps for DescriptorSize.
var ( Settings_AnimationStyle_name = map[int32]string{ 0: "LEFT_TO_RIGHT", 1: "RIGHT_TO_LEFT", 2: "CENTER_OUT", 3: "SIDES_IN", 4: "DOWN", 5: "UP", } Settings_AnimationStyle_value = map[string]int32{ "LEFT_TO_RIGHT": 0, "RIGHT_TO_LEFT": 1, "CENTER_OUT": 2, "SIDES_IN": 3, "DOWN": 4, "UP": 5, } )
Enum value maps for Settings_AnimationStyle.
var ( SplitflapState_ModuleState_State_name = map[int32]string{ 0: "NORMAL", 1: "LOOK_FOR_HOME", 2: "SENSOR_ERROR", 3: "PANIC", 4: "STATE_DISABLED", } SplitflapState_ModuleState_State_value = map[string]int32{ "NORMAL": 0, "LOOK_FOR_HOME": 1, "SENSOR_ERROR": 2, "PANIC": 3, "STATE_DISABLED": 4, } )
Enum value maps for SplitflapState_ModuleState_State.
var ( SupervisorState_State_name = map[int32]string{ 0: "UNKNOWN", 1: "STARTING_VERIFY_PSU_OFF", 2: "STARTING_VERIFY_VOLTAGES", 3: "STARTING_ENABLE_CHANNELS", 4: "NORMAL", 5: "FAULT", } SupervisorState_State_value = map[string]int32{ "UNKNOWN": 0, "STARTING_VERIFY_PSU_OFF": 1, "STARTING_VERIFY_VOLTAGES": 2, "STARTING_ENABLE_CHANNELS": 3, "NORMAL": 4, "FAULT": 5, } )
Enum value maps for SupervisorState_State.
var ( SupervisorState_FaultInfo_FaultType_name = map[int32]string{ 0: "UNKNOWN", 1: "NONE", 2: "INRUSH_CURRENT_NOT_SETTLED", 3: "SPLITFLAP_SHUTDOWN", 4: "OUT_OF_RANGE", 5: "OVER_CURRENT", 6: "UNEXPECTED_POWER", } SupervisorState_FaultInfo_FaultType_value = map[string]int32{ "UNKNOWN": 0, "NONE": 1, "INRUSH_CURRENT_NOT_SETTLED": 2, "SPLITFLAP_SHUTDOWN": 3, "OUT_OF_RANGE": 4, "OVER_CURRENT": 5, "UNEXPECTED_POWER": 6, } )
Enum value maps for SupervisorState_FaultInfo_FaultType.
var ( SplitflapCommand_ModuleCommand_Action_name = map[int32]string{ 0: "NO_OP", 1: "GO_TO_FLAP", 2: "RESET_AND_HOME", } SplitflapCommand_ModuleCommand_Action_value = map[string]int32{ "NO_OP": 0, "GO_TO_FLAP": 1, "RESET_AND_HOME": 2, } )
Enum value maps for SplitflapCommand_ModuleCommand_Action.
var (
// optional NanoPBOptions nanopb = 1010;
E_Nanopb = &file_nanopb_proto_extTypes[3]
)
Extension fields to descriptor.FieldOptions.
var (
// optional NanoPBOptions nanopb_enumopt = 1010;
E_NanopbEnumopt = &file_nanopb_proto_extTypes[2]
)
Extension fields to descriptor.EnumOptions.
var (
// optional NanoPBOptions nanopb_fileopt = 1010;
E_NanopbFileopt = &file_nanopb_proto_extTypes[0]
)
Extension fields to descriptor.FileOptions.
var (
// optional NanoPBOptions nanopb_msgopt = 1010;
E_NanopbMsgopt = &file_nanopb_proto_extTypes[1]
)
Extension fields to descriptor.MessageOptions.
var File_nanopb_proto protoreflect.FileDescriptor
var File_splitflap_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Ack ¶
type Ack struct { Nonce uint32 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` // contains filtered or unexported fields }
func (*Ack) Descriptor
deprecated
func (*Ack) ProtoMessage ¶
func (*Ack) ProtoMessage()
func (*Ack) ProtoReflect ¶
func (x *Ack) ProtoReflect() protoreflect.Message
type DescriptorSize ¶
type DescriptorSize int32
const ( DescriptorSize_DS_AUTO DescriptorSize = 0 // Select minimal size based on field type DescriptorSize_DS_1 DescriptorSize = 1 // 1 word; up to 15 byte fields, no arrays DescriptorSize_DS_2 DescriptorSize = 2 // 2 words; up to 4095 byte fields, 4095 entry arrays DescriptorSize_DS_4 DescriptorSize = 4 // 4 words; up to 2^32-1 byte fields, 2^16-1 entry arrays DescriptorSize_DS_8 DescriptorSize = 8 // 8 words; up to 2^32-1 entry arrays )
func (DescriptorSize) Descriptor ¶
func (DescriptorSize) Descriptor() protoreflect.EnumDescriptor
func (DescriptorSize) Enum ¶
func (x DescriptorSize) Enum() *DescriptorSize
func (DescriptorSize) EnumDescriptor
deprecated
func (DescriptorSize) EnumDescriptor() ([]byte, []int)
Deprecated: Use DescriptorSize.Descriptor instead.
func (DescriptorSize) Number ¶
func (x DescriptorSize) Number() protoreflect.EnumNumber
func (DescriptorSize) String ¶
func (x DescriptorSize) String() string
func (DescriptorSize) Type ¶
func (DescriptorSize) Type() protoreflect.EnumType
func (*DescriptorSize) UnmarshalJSON
deprecated
func (x *DescriptorSize) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type FieldType ¶
type FieldType int32
const ( FieldType_FT_DEFAULT FieldType = 0 // Automatically decide field type, generate static field if possible. FieldType_FT_CALLBACK FieldType = 1 // Always generate a callback field. FieldType_FT_POINTER FieldType = 4 // Always generate a dynamically allocated field. FieldType_FT_STATIC FieldType = 2 // Generate a static field or raise an exception if not possible. FieldType_FT_IGNORE FieldType = 3 // Ignore the field completely. FieldType_FT_INLINE FieldType = 5 // Legacy option, use the separate 'fixed_length' option instead )
func (FieldType) Descriptor ¶
func (FieldType) Descriptor() protoreflect.EnumDescriptor
func (FieldType) EnumDescriptor
deprecated
func (FieldType) Number ¶
func (x FieldType) Number() protoreflect.EnumNumber
func (FieldType) Type ¶
func (FieldType) Type() protoreflect.EnumType
func (*FieldType) UnmarshalJSON
deprecated
type FromSplitflap ¶
type FromSplitflap struct { // Types that are assignable to Payload: // // *FromSplitflap_SplitflapState // *FromSplitflap_Log // *FromSplitflap_Ack // *FromSplitflap_SupervisorState Payload isFromSplitflap_Payload `protobuf_oneof:"payload"` // contains filtered or unexported fields }
func (*FromSplitflap) Descriptor
deprecated
func (*FromSplitflap) Descriptor() ([]byte, []int)
Deprecated: Use FromSplitflap.ProtoReflect.Descriptor instead.
func (*FromSplitflap) GetAck ¶
func (x *FromSplitflap) GetAck() *Ack
func (*FromSplitflap) GetLog ¶
func (x *FromSplitflap) GetLog() *Log
func (*FromSplitflap) GetPayload ¶
func (m *FromSplitflap) GetPayload() isFromSplitflap_Payload
func (*FromSplitflap) GetSplitflapState ¶
func (x *FromSplitflap) GetSplitflapState() *SplitflapState
func (*FromSplitflap) GetSupervisorState ¶
func (x *FromSplitflap) GetSupervisorState() *SupervisorState
func (*FromSplitflap) ProtoMessage ¶
func (*FromSplitflap) ProtoMessage()
func (*FromSplitflap) ProtoReflect ¶
func (x *FromSplitflap) ProtoReflect() protoreflect.Message
func (*FromSplitflap) Reset ¶
func (x *FromSplitflap) Reset()
func (*FromSplitflap) String ¶
func (x *FromSplitflap) String() string
type FromSplitflap_Ack ¶
type FromSplitflap_Ack struct {
Ack *Ack `protobuf:"bytes,3,opt,name=ack,proto3,oneof"`
}
type FromSplitflap_Log ¶
type FromSplitflap_Log struct {
Log *Log `protobuf:"bytes,2,opt,name=log,proto3,oneof"`
}
type FromSplitflap_SplitflapState ¶
type FromSplitflap_SplitflapState struct {
SplitflapState *SplitflapState `protobuf:"bytes,1,opt,name=splitflap_state,json=splitflapState,proto3,oneof"`
}
type FromSplitflap_SupervisorState ¶
type FromSplitflap_SupervisorState struct {
SupervisorState *SupervisorState `protobuf:"bytes,4,opt,name=supervisor_state,json=supervisorState,proto3,oneof"`
}
type IntSize ¶
type IntSize int32
func (IntSize) Descriptor ¶
func (IntSize) Descriptor() protoreflect.EnumDescriptor
func (IntSize) EnumDescriptor
deprecated
func (IntSize) Number ¶
func (x IntSize) Number() protoreflect.EnumNumber
func (IntSize) Type ¶
func (IntSize) Type() protoreflect.EnumType
func (*IntSize) UnmarshalJSON
deprecated
type Log ¶
type Log struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*Log) Descriptor
deprecated
func (*Log) ProtoMessage ¶
func (*Log) ProtoMessage()
func (*Log) ProtoReflect ¶
func (x *Log) ProtoReflect() protoreflect.Message
type NanoPBOptions ¶
type NanoPBOptions struct { // Allocated size for 'bytes' and 'string' fields. // For string fields, this should include the space for null terminator. MaxSize *int32 `protobuf:"varint,1,opt,name=max_size,json=maxSize" json:"max_size,omitempty"` // Maximum length for 'string' fields. Setting this is equivalent // to setting max_size to a value of length+1. MaxLength *int32 `protobuf:"varint,14,opt,name=max_length,json=maxLength" json:"max_length,omitempty"` // Allocated number of entries in arrays ('repeated' fields) MaxCount *int32 `protobuf:"varint,2,opt,name=max_count,json=maxCount" json:"max_count,omitempty"` // Size of integer fields. Can save some memory if you don't need // full 32 bits for the value. IntSize *IntSize `protobuf:"varint,7,opt,name=int_size,json=intSize,enum=IntSize,def=0" json:"int_size,omitempty"` // Force type of field (callback or static allocation) Type *FieldType `protobuf:"varint,3,opt,name=type,enum=FieldType,def=0" json:"type,omitempty"` // Use long names for enums, i.e. EnumName_EnumValue. LongNames *bool `protobuf:"varint,4,opt,name=long_names,json=longNames,def=1" json:"long_names,omitempty"` // Add 'packed' attribute to generated structs. // Note: this cannot be used on CPUs that break on unaligned // accesses to variables. PackedStruct *bool `protobuf:"varint,5,opt,name=packed_struct,json=packedStruct,def=0" json:"packed_struct,omitempty"` // Add 'packed' attribute to generated enums. PackedEnum *bool `protobuf:"varint,10,opt,name=packed_enum,json=packedEnum,def=0" json:"packed_enum,omitempty"` // Skip this message SkipMessage *bool `protobuf:"varint,6,opt,name=skip_message,json=skipMessage,def=0" json:"skip_message,omitempty"` // Generate oneof fields as normal optional fields instead of union. NoUnions *bool `protobuf:"varint,8,opt,name=no_unions,json=noUnions,def=0" json:"no_unions,omitempty"` // integer type tag for a message Msgid *uint32 `protobuf:"varint,9,opt,name=msgid" json:"msgid,omitempty"` // decode oneof as anonymous union AnonymousOneof *bool `protobuf:"varint,11,opt,name=anonymous_oneof,json=anonymousOneof,def=0" json:"anonymous_oneof,omitempty"` // Proto3 singular field does not generate a "has_" flag Proto3 *bool `protobuf:"varint,12,opt,name=proto3,def=0" json:"proto3,omitempty"` // Force proto3 messages to have no "has_" flag. // This was default behavior until nanopb-0.4.0. Proto3SingularMsgs *bool `protobuf:"varint,21,opt,name=proto3_singular_msgs,json=proto3SingularMsgs,def=0" json:"proto3_singular_msgs,omitempty"` // Generate an enum->string mapping function (can take up lots of space). EnumToString *bool `protobuf:"varint,13,opt,name=enum_to_string,json=enumToString,def=0" json:"enum_to_string,omitempty"` // Generate bytes arrays with fixed length FixedLength *bool `protobuf:"varint,15,opt,name=fixed_length,json=fixedLength,def=0" json:"fixed_length,omitempty"` // Generate repeated field with fixed count FixedCount *bool `protobuf:"varint,16,opt,name=fixed_count,json=fixedCount,def=0" json:"fixed_count,omitempty"` // Generate message-level callback that is called before decoding submessages. // This can be used to set callback fields for submsgs inside oneofs. SubmsgCallback *bool `protobuf:"varint,22,opt,name=submsg_callback,json=submsgCallback,def=0" json:"submsg_callback,omitempty"` // Shorten or remove package names from type names. // This option applies only on the file level. MangleNames *TypenameMangling `protobuf:"varint,17,opt,name=mangle_names,json=mangleNames,enum=TypenameMangling,def=0" json:"mangle_names,omitempty"` // Data type for storage associated with callback fields. CallbackDatatype *string `protobuf:"bytes,18,opt,name=callback_datatype,json=callbackDatatype,def=pb_callback_t" json:"callback_datatype,omitempty"` // Callback function used for encoding and decoding. // Prior to nanopb-0.4.0, the callback was specified in per-field pb_callback_t // structure. This is still supported, but does not work inside e.g. oneof or pointer // fields. Instead, a new method allows specifying a per-message callback that // will be called for all callback fields in a message type. CallbackFunction *string `` /* 133-byte string literal not displayed */ // Select the size of field descriptors. This option has to be defined // for the whole message, not per-field. Usually automatic selection is // ok, but if it results in compilation errors you can increase the field // size here. Descriptorsize *DescriptorSize `protobuf:"varint,20,opt,name=descriptorsize,enum=DescriptorSize,def=0" json:"descriptorsize,omitempty"` // Set default value for has_ fields. DefaultHas *bool `protobuf:"varint,23,opt,name=default_has,json=defaultHas,def=0" json:"default_has,omitempty"` // Extra files to include in generated `.pb.h` Include []string `protobuf:"bytes,24,rep,name=include" json:"include,omitempty"` // Automatic includes to exlude from generated `.pb.h` // Same as nanopb_generator.py command line flag -x. Exclude []string `protobuf:"bytes,26,rep,name=exclude" json:"exclude,omitempty"` // Package name that applies only for nanopb. Package *string `protobuf:"bytes,25,opt,name=package" json:"package,omitempty"` // Override type of the field in generated C code. Only to be used with related field types TypeOverride *descriptor.FieldDescriptorProto_Type `` /* 139-byte string literal not displayed */ // Due to historical reasons, nanopb orders fields in structs by their tag number // instead of the order in .proto. Set this to false to keep the .proto order. // The default value will probably change to false in nanopb-0.5.0. SortByTag *bool `protobuf:"varint,28,opt,name=sort_by_tag,json=sortByTag,def=1" json:"sort_by_tag,omitempty"` // contains filtered or unexported fields }
This is the inner options message, which basically defines options for a field. When it is used in message or file scope, it applies to all fields.
func (*NanoPBOptions) Descriptor
deprecated
func (*NanoPBOptions) Descriptor() ([]byte, []int)
Deprecated: Use NanoPBOptions.ProtoReflect.Descriptor instead.
func (*NanoPBOptions) GetAnonymousOneof ¶
func (x *NanoPBOptions) GetAnonymousOneof() bool
func (*NanoPBOptions) GetCallbackDatatype ¶
func (x *NanoPBOptions) GetCallbackDatatype() string
func (*NanoPBOptions) GetCallbackFunction ¶
func (x *NanoPBOptions) GetCallbackFunction() string
func (*NanoPBOptions) GetDefaultHas ¶
func (x *NanoPBOptions) GetDefaultHas() bool
func (*NanoPBOptions) GetDescriptorsize ¶
func (x *NanoPBOptions) GetDescriptorsize() DescriptorSize
func (*NanoPBOptions) GetEnumToString ¶
func (x *NanoPBOptions) GetEnumToString() bool
func (*NanoPBOptions) GetExclude ¶
func (x *NanoPBOptions) GetExclude() []string
func (*NanoPBOptions) GetFixedCount ¶
func (x *NanoPBOptions) GetFixedCount() bool
func (*NanoPBOptions) GetFixedLength ¶
func (x *NanoPBOptions) GetFixedLength() bool
func (*NanoPBOptions) GetInclude ¶
func (x *NanoPBOptions) GetInclude() []string
func (*NanoPBOptions) GetIntSize ¶
func (x *NanoPBOptions) GetIntSize() IntSize
func (*NanoPBOptions) GetLongNames ¶
func (x *NanoPBOptions) GetLongNames() bool
func (*NanoPBOptions) GetMangleNames ¶
func (x *NanoPBOptions) GetMangleNames() TypenameMangling
func (*NanoPBOptions) GetMaxCount ¶
func (x *NanoPBOptions) GetMaxCount() int32
func (*NanoPBOptions) GetMaxLength ¶
func (x *NanoPBOptions) GetMaxLength() int32
func (*NanoPBOptions) GetMaxSize ¶
func (x *NanoPBOptions) GetMaxSize() int32
func (*NanoPBOptions) GetMsgid ¶
func (x *NanoPBOptions) GetMsgid() uint32
func (*NanoPBOptions) GetNoUnions ¶
func (x *NanoPBOptions) GetNoUnions() bool
func (*NanoPBOptions) GetPackage ¶
func (x *NanoPBOptions) GetPackage() string
func (*NanoPBOptions) GetPackedEnum ¶
func (x *NanoPBOptions) GetPackedEnum() bool
func (*NanoPBOptions) GetPackedStruct ¶
func (x *NanoPBOptions) GetPackedStruct() bool
func (*NanoPBOptions) GetProto3 ¶
func (x *NanoPBOptions) GetProto3() bool
func (*NanoPBOptions) GetProto3SingularMsgs ¶
func (x *NanoPBOptions) GetProto3SingularMsgs() bool
func (*NanoPBOptions) GetSkipMessage ¶
func (x *NanoPBOptions) GetSkipMessage() bool
func (*NanoPBOptions) GetSortByTag ¶
func (x *NanoPBOptions) GetSortByTag() bool
func (*NanoPBOptions) GetSubmsgCallback ¶
func (x *NanoPBOptions) GetSubmsgCallback() bool
func (*NanoPBOptions) GetType ¶
func (x *NanoPBOptions) GetType() FieldType
func (*NanoPBOptions) GetTypeOverride ¶
func (x *NanoPBOptions) GetTypeOverride() descriptor.FieldDescriptorProto_Type
func (*NanoPBOptions) ProtoMessage ¶
func (*NanoPBOptions) ProtoMessage()
func (*NanoPBOptions) ProtoReflect ¶
func (x *NanoPBOptions) ProtoReflect() protoreflect.Message
func (*NanoPBOptions) Reset ¶
func (x *NanoPBOptions) Reset()
func (*NanoPBOptions) String ¶
func (x *NanoPBOptions) String() string
type RequestState ¶
type RequestState struct {
// contains filtered or unexported fields
}
func (*RequestState) Descriptor
deprecated
func (*RequestState) Descriptor() ([]byte, []int)
Deprecated: Use RequestState.ProtoReflect.Descriptor instead.
func (*RequestState) ProtoMessage ¶
func (*RequestState) ProtoMessage()
func (*RequestState) ProtoReflect ¶
func (x *RequestState) ProtoReflect() protoreflect.Message
func (*RequestState) Reset ¶
func (x *RequestState) Reset()
func (*RequestState) String ¶
func (x *RequestState) String() string
type Settings ¶
type Settings struct { // force_full_rotation determines whether a module cycles through an entire // rotation when its target position is not changing. ForceFullRotation bool `protobuf:"varint,1,opt,name=force_full_rotation,json=forceFullRotation,proto3" json:"force_full_rotation,omitempty"` // max_moving controls the number of modules that are allowed to be moving // simultaneously. 0 means no limit. MaxMoving uint32 `protobuf:"varint,2,opt,name=max_moving,json=maxMoving,proto3" json:"max_moving,omitempty"` // start_delay_millis is the number of milliseconds to wait after starting a // module moving before starting the next one. StartDelayMillis uint32 `protobuf:"varint,3,opt,name=start_delay_millis,json=startDelayMillis,proto3" json:"start_delay_millis,omitempty"` // animation_style determines the order in which flaps will start moving. AnimationStyle Settings_AnimationStyle `` /* 136-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Settings) Descriptor
deprecated
func (*Settings) GetAnimationStyle ¶
func (x *Settings) GetAnimationStyle() Settings_AnimationStyle
func (*Settings) GetForceFullRotation ¶
func (*Settings) GetMaxMoving ¶
func (*Settings) GetStartDelayMillis ¶
func (*Settings) ProtoMessage ¶
func (*Settings) ProtoMessage()
func (*Settings) ProtoReflect ¶
func (x *Settings) ProtoReflect() protoreflect.Message
type Settings_AnimationStyle ¶
type Settings_AnimationStyle int32
const ( Settings_LEFT_TO_RIGHT Settings_AnimationStyle = 0 Settings_RIGHT_TO_LEFT Settings_AnimationStyle = 1 Settings_CENTER_OUT Settings_AnimationStyle = 2 Settings_SIDES_IN Settings_AnimationStyle = 3 Settings_DOWN Settings_AnimationStyle = 4 Settings_UP Settings_AnimationStyle = 5 )
func (Settings_AnimationStyle) Descriptor ¶
func (Settings_AnimationStyle) Descriptor() protoreflect.EnumDescriptor
func (Settings_AnimationStyle) Enum ¶
func (x Settings_AnimationStyle) Enum() *Settings_AnimationStyle
func (Settings_AnimationStyle) EnumDescriptor
deprecated
func (Settings_AnimationStyle) EnumDescriptor() ([]byte, []int)
Deprecated: Use Settings_AnimationStyle.Descriptor instead.
func (Settings_AnimationStyle) Number ¶
func (x Settings_AnimationStyle) Number() protoreflect.EnumNumber
func (Settings_AnimationStyle) String ¶
func (x Settings_AnimationStyle) String() string
func (Settings_AnimationStyle) Type ¶
func (Settings_AnimationStyle) Type() protoreflect.EnumType
type SplitflapCommand ¶
type SplitflapCommand struct { Modules []*SplitflapCommand_ModuleCommand `protobuf:"bytes,2,rep,name=modules,proto3" json:"modules,omitempty"` // contains filtered or unexported fields }
func (*SplitflapCommand) Descriptor
deprecated
func (*SplitflapCommand) Descriptor() ([]byte, []int)
Deprecated: Use SplitflapCommand.ProtoReflect.Descriptor instead.
func (*SplitflapCommand) GetModules ¶
func (x *SplitflapCommand) GetModules() []*SplitflapCommand_ModuleCommand
func (*SplitflapCommand) ProtoMessage ¶
func (*SplitflapCommand) ProtoMessage()
func (*SplitflapCommand) ProtoReflect ¶
func (x *SplitflapCommand) ProtoReflect() protoreflect.Message
func (*SplitflapCommand) Reset ¶
func (x *SplitflapCommand) Reset()
func (*SplitflapCommand) String ¶
func (x *SplitflapCommand) String() string
type SplitflapCommand_ModuleCommand ¶
type SplitflapCommand_ModuleCommand struct { Action SplitflapCommand_ModuleCommand_Action `protobuf:"varint,1,opt,name=action,proto3,enum=PB.SplitflapCommand_ModuleCommand_Action" json:"action,omitempty"` Param uint32 `protobuf:"varint,2,opt,name=param,proto3" json:"param,omitempty"` // contains filtered or unexported fields }
func (*SplitflapCommand_ModuleCommand) Descriptor
deprecated
func (*SplitflapCommand_ModuleCommand) Descriptor() ([]byte, []int)
Deprecated: Use SplitflapCommand_ModuleCommand.ProtoReflect.Descriptor instead.
func (*SplitflapCommand_ModuleCommand) GetAction ¶
func (x *SplitflapCommand_ModuleCommand) GetAction() SplitflapCommand_ModuleCommand_Action
func (*SplitflapCommand_ModuleCommand) GetParam ¶
func (x *SplitflapCommand_ModuleCommand) GetParam() uint32
func (*SplitflapCommand_ModuleCommand) ProtoMessage ¶
func (*SplitflapCommand_ModuleCommand) ProtoMessage()
func (*SplitflapCommand_ModuleCommand) ProtoReflect ¶
func (x *SplitflapCommand_ModuleCommand) ProtoReflect() protoreflect.Message
func (*SplitflapCommand_ModuleCommand) Reset ¶
func (x *SplitflapCommand_ModuleCommand) Reset()
func (*SplitflapCommand_ModuleCommand) String ¶
func (x *SplitflapCommand_ModuleCommand) String() string
type SplitflapCommand_ModuleCommand_Action ¶
type SplitflapCommand_ModuleCommand_Action int32
const ( SplitflapCommand_ModuleCommand_NO_OP SplitflapCommand_ModuleCommand_Action = 0 SplitflapCommand_ModuleCommand_GO_TO_FLAP SplitflapCommand_ModuleCommand_Action = 1 SplitflapCommand_ModuleCommand_RESET_AND_HOME SplitflapCommand_ModuleCommand_Action = 2 )
func (SplitflapCommand_ModuleCommand_Action) Descriptor ¶
func (SplitflapCommand_ModuleCommand_Action) Descriptor() protoreflect.EnumDescriptor
func (SplitflapCommand_ModuleCommand_Action) EnumDescriptor
deprecated
func (SplitflapCommand_ModuleCommand_Action) EnumDescriptor() ([]byte, []int)
Deprecated: Use SplitflapCommand_ModuleCommand_Action.Descriptor instead.
func (SplitflapCommand_ModuleCommand_Action) Number ¶
func (x SplitflapCommand_ModuleCommand_Action) Number() protoreflect.EnumNumber
func (SplitflapCommand_ModuleCommand_Action) String ¶
func (x SplitflapCommand_ModuleCommand_Action) String() string
func (SplitflapCommand_ModuleCommand_Action) Type ¶
func (SplitflapCommand_ModuleCommand_Action) Type() protoreflect.EnumType
type SplitflapConfig ¶
type SplitflapConfig struct { Settings *Settings `protobuf:"bytes,1,opt,name=settings,proto3" json:"settings,omitempty"` Modules []*SplitflapConfig_ModuleConfig `protobuf:"bytes,2,rep,name=modules,proto3" json:"modules,omitempty"` // contains filtered or unexported fields }
func (*SplitflapConfig) Descriptor
deprecated
func (*SplitflapConfig) Descriptor() ([]byte, []int)
Deprecated: Use SplitflapConfig.ProtoReflect.Descriptor instead.
func (*SplitflapConfig) GetModules ¶
func (x *SplitflapConfig) GetModules() []*SplitflapConfig_ModuleConfig
func (*SplitflapConfig) GetSettings ¶
func (x *SplitflapConfig) GetSettings() *Settings
func (*SplitflapConfig) ProtoMessage ¶
func (*SplitflapConfig) ProtoMessage()
func (*SplitflapConfig) ProtoReflect ¶
func (x *SplitflapConfig) ProtoReflect() protoreflect.Message
func (*SplitflapConfig) Reset ¶
func (x *SplitflapConfig) Reset()
func (*SplitflapConfig) String ¶
func (x *SplitflapConfig) String() string
type SplitflapConfig_ModuleConfig ¶
type SplitflapConfig_ModuleConfig struct { TargetFlapIndex uint32 `protobuf:"varint,1,opt,name=target_flap_index,json=targetFlapIndex,proto3" json:"target_flap_index,omitempty"` // * // Value that triggers a movement upon change. If unused, only changes to target_flap_index // will trigger a movement. This can be used to trigger a full revolution back to the *same* // flap index. // // NOTE: Must be < 256 MovementNonce uint32 `protobuf:"varint,2,opt,name=movement_nonce,json=movementNonce,proto3" json:"movement_nonce,omitempty"` // * // Value that triggers a reset (clear error counters, re-home) upon change. If unused, // module will only re-home upon recoverable errors, and error counters will continue // to increase until overflow. // // NOTE: Must be < 256 ResetNonce uint32 `protobuf:"varint,3,opt,name=reset_nonce,json=resetNonce,proto3" json:"reset_nonce,omitempty"` // contains filtered or unexported fields }
func (*SplitflapConfig_ModuleConfig) Descriptor
deprecated
func (*SplitflapConfig_ModuleConfig) Descriptor() ([]byte, []int)
Deprecated: Use SplitflapConfig_ModuleConfig.ProtoReflect.Descriptor instead.
func (*SplitflapConfig_ModuleConfig) GetMovementNonce ¶
func (x *SplitflapConfig_ModuleConfig) GetMovementNonce() uint32
func (*SplitflapConfig_ModuleConfig) GetResetNonce ¶
func (x *SplitflapConfig_ModuleConfig) GetResetNonce() uint32
func (*SplitflapConfig_ModuleConfig) GetTargetFlapIndex ¶
func (x *SplitflapConfig_ModuleConfig) GetTargetFlapIndex() uint32
func (*SplitflapConfig_ModuleConfig) ProtoMessage ¶
func (*SplitflapConfig_ModuleConfig) ProtoMessage()
func (*SplitflapConfig_ModuleConfig) ProtoReflect ¶
func (x *SplitflapConfig_ModuleConfig) ProtoReflect() protoreflect.Message
func (*SplitflapConfig_ModuleConfig) Reset ¶
func (x *SplitflapConfig_ModuleConfig) Reset()
func (*SplitflapConfig_ModuleConfig) String ¶
func (x *SplitflapConfig_ModuleConfig) String() string
type SplitflapState ¶
type SplitflapState struct { Settings *Settings `protobuf:"bytes,1,opt,name=settings,proto3" json:"settings,omitempty"` Modules []*SplitflapState_ModuleState `protobuf:"bytes,2,rep,name=modules,proto3" json:"modules,omitempty"` // contains filtered or unexported fields }
func (*SplitflapState) Descriptor
deprecated
func (*SplitflapState) Descriptor() ([]byte, []int)
Deprecated: Use SplitflapState.ProtoReflect.Descriptor instead.
func (*SplitflapState) GetModules ¶
func (x *SplitflapState) GetModules() []*SplitflapState_ModuleState
func (*SplitflapState) GetSettings ¶
func (x *SplitflapState) GetSettings() *Settings
func (*SplitflapState) ProtoMessage ¶
func (*SplitflapState) ProtoMessage()
func (*SplitflapState) ProtoReflect ¶
func (x *SplitflapState) ProtoReflect() protoreflect.Message
func (*SplitflapState) Reset ¶
func (x *SplitflapState) Reset()
func (*SplitflapState) String ¶
func (x *SplitflapState) String() string
type SplitflapState_ModuleState ¶
type SplitflapState_ModuleState struct { State SplitflapState_ModuleState_State `protobuf:"varint,1,opt,name=state,proto3,enum=PB.SplitflapState_ModuleState_State" json:"state,omitempty"` FlapIndex uint32 `protobuf:"varint,2,opt,name=flap_index,json=flapIndex,proto3" json:"flap_index,omitempty"` Moving bool `protobuf:"varint,3,opt,name=moving,proto3" json:"moving,omitempty"` HomeState bool `protobuf:"varint,4,opt,name=home_state,json=homeState,proto3" json:"home_state,omitempty"` CountUnexpectedHome uint32 `protobuf:"varint,5,opt,name=count_unexpected_home,json=countUnexpectedHome,proto3" json:"count_unexpected_home,omitempty"` CountMissedHome uint32 `protobuf:"varint,6,opt,name=count_missed_home,json=countMissedHome,proto3" json:"count_missed_home,omitempty"` // contains filtered or unexported fields }
func (*SplitflapState_ModuleState) Descriptor
deprecated
func (*SplitflapState_ModuleState) Descriptor() ([]byte, []int)
Deprecated: Use SplitflapState_ModuleState.ProtoReflect.Descriptor instead.
func (*SplitflapState_ModuleState) GetCountMissedHome ¶
func (x *SplitflapState_ModuleState) GetCountMissedHome() uint32
func (*SplitflapState_ModuleState) GetCountUnexpectedHome ¶
func (x *SplitflapState_ModuleState) GetCountUnexpectedHome() uint32
func (*SplitflapState_ModuleState) GetFlapIndex ¶
func (x *SplitflapState_ModuleState) GetFlapIndex() uint32
func (*SplitflapState_ModuleState) GetHomeState ¶
func (x *SplitflapState_ModuleState) GetHomeState() bool
func (*SplitflapState_ModuleState) GetMoving ¶
func (x *SplitflapState_ModuleState) GetMoving() bool
func (*SplitflapState_ModuleState) GetState ¶
func (x *SplitflapState_ModuleState) GetState() SplitflapState_ModuleState_State
func (*SplitflapState_ModuleState) ProtoMessage ¶
func (*SplitflapState_ModuleState) ProtoMessage()
func (*SplitflapState_ModuleState) ProtoReflect ¶
func (x *SplitflapState_ModuleState) ProtoReflect() protoreflect.Message
func (*SplitflapState_ModuleState) Reset ¶
func (x *SplitflapState_ModuleState) Reset()
func (*SplitflapState_ModuleState) String ¶
func (x *SplitflapState_ModuleState) String() string
type SplitflapState_ModuleState_State ¶
type SplitflapState_ModuleState_State int32
const ( // Keep in sync with splitflap_module_data.h! SplitflapState_ModuleState_NORMAL SplitflapState_ModuleState_State = 0 SplitflapState_ModuleState_LOOK_FOR_HOME SplitflapState_ModuleState_State = 1 SplitflapState_ModuleState_SENSOR_ERROR SplitflapState_ModuleState_State = 2 SplitflapState_ModuleState_PANIC SplitflapState_ModuleState_State = 3 SplitflapState_ModuleState_STATE_DISABLED SplitflapState_ModuleState_State = 4 )
func (SplitflapState_ModuleState_State) Descriptor ¶
func (SplitflapState_ModuleState_State) Descriptor() protoreflect.EnumDescriptor
func (SplitflapState_ModuleState_State) Enum ¶
func (x SplitflapState_ModuleState_State) Enum() *SplitflapState_ModuleState_State
func (SplitflapState_ModuleState_State) EnumDescriptor
deprecated
func (SplitflapState_ModuleState_State) EnumDescriptor() ([]byte, []int)
Deprecated: Use SplitflapState_ModuleState_State.Descriptor instead.
func (SplitflapState_ModuleState_State) Number ¶
func (x SplitflapState_ModuleState_State) Number() protoreflect.EnumNumber
func (SplitflapState_ModuleState_State) String ¶
func (x SplitflapState_ModuleState_State) String() string
func (SplitflapState_ModuleState_State) Type ¶
func (SplitflapState_ModuleState_State) Type() protoreflect.EnumType
type SupervisorState ¶
type SupervisorState struct { UptimeMillis uint32 `protobuf:"varint,1,opt,name=uptime_millis,json=uptimeMillis,proto3" json:"uptime_millis,omitempty"` State SupervisorState_State `protobuf:"varint,2,opt,name=state,proto3,enum=PB.SupervisorState_State" json:"state,omitempty"` PowerChannels []*SupervisorState_PowerChannelState `protobuf:"bytes,3,rep,name=power_channels,json=powerChannels,proto3" json:"power_channels,omitempty"` FaultInfo *SupervisorState_FaultInfo `protobuf:"bytes,4,opt,name=fault_info,json=faultInfo,proto3" json:"fault_info,omitempty"` // contains filtered or unexported fields }
func (*SupervisorState) Descriptor
deprecated
func (*SupervisorState) Descriptor() ([]byte, []int)
Deprecated: Use SupervisorState.ProtoReflect.Descriptor instead.
func (*SupervisorState) GetFaultInfo ¶
func (x *SupervisorState) GetFaultInfo() *SupervisorState_FaultInfo
func (*SupervisorState) GetPowerChannels ¶
func (x *SupervisorState) GetPowerChannels() []*SupervisorState_PowerChannelState
func (*SupervisorState) GetState ¶
func (x *SupervisorState) GetState() SupervisorState_State
func (*SupervisorState) GetUptimeMillis ¶
func (x *SupervisorState) GetUptimeMillis() uint32
func (*SupervisorState) ProtoMessage ¶
func (*SupervisorState) ProtoMessage()
func (*SupervisorState) ProtoReflect ¶
func (x *SupervisorState) ProtoReflect() protoreflect.Message
func (*SupervisorState) Reset ¶
func (x *SupervisorState) Reset()
func (*SupervisorState) String ¶
func (x *SupervisorState) String() string
type SupervisorState_FaultInfo ¶
type SupervisorState_FaultInfo struct { Type SupervisorState_FaultInfo_FaultType `protobuf:"varint,1,opt,name=type,proto3,enum=PB.SupervisorState_FaultInfo_FaultType" json:"type,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` TsMillis uint32 `protobuf:"varint,3,opt,name=ts_millis,json=tsMillis,proto3" json:"ts_millis,omitempty"` // contains filtered or unexported fields }
func (*SupervisorState_FaultInfo) Descriptor
deprecated
func (*SupervisorState_FaultInfo) Descriptor() ([]byte, []int)
Deprecated: Use SupervisorState_FaultInfo.ProtoReflect.Descriptor instead.
func (*SupervisorState_FaultInfo) GetMsg ¶
func (x *SupervisorState_FaultInfo) GetMsg() string
func (*SupervisorState_FaultInfo) GetTsMillis ¶
func (x *SupervisorState_FaultInfo) GetTsMillis() uint32
func (*SupervisorState_FaultInfo) GetType ¶
func (x *SupervisorState_FaultInfo) GetType() SupervisorState_FaultInfo_FaultType
func (*SupervisorState_FaultInfo) ProtoMessage ¶
func (*SupervisorState_FaultInfo) ProtoMessage()
func (*SupervisorState_FaultInfo) ProtoReflect ¶
func (x *SupervisorState_FaultInfo) ProtoReflect() protoreflect.Message
func (*SupervisorState_FaultInfo) Reset ¶
func (x *SupervisorState_FaultInfo) Reset()
func (*SupervisorState_FaultInfo) String ¶
func (x *SupervisorState_FaultInfo) String() string
type SupervisorState_FaultInfo_FaultType ¶
type SupervisorState_FaultInfo_FaultType int32
const ( SupervisorState_FaultInfo_UNKNOWN SupervisorState_FaultInfo_FaultType = 0 SupervisorState_FaultInfo_NONE SupervisorState_FaultInfo_FaultType = 1 SupervisorState_FaultInfo_INRUSH_CURRENT_NOT_SETTLED SupervisorState_FaultInfo_FaultType = 2 SupervisorState_FaultInfo_SPLITFLAP_SHUTDOWN SupervisorState_FaultInfo_FaultType = 3 SupervisorState_FaultInfo_OUT_OF_RANGE SupervisorState_FaultInfo_FaultType = 4 SupervisorState_FaultInfo_OVER_CURRENT SupervisorState_FaultInfo_FaultType = 5 SupervisorState_FaultInfo_UNEXPECTED_POWER SupervisorState_FaultInfo_FaultType = 6 )
func (SupervisorState_FaultInfo_FaultType) Descriptor ¶
func (SupervisorState_FaultInfo_FaultType) Descriptor() protoreflect.EnumDescriptor
func (SupervisorState_FaultInfo_FaultType) Enum ¶
func (x SupervisorState_FaultInfo_FaultType) Enum() *SupervisorState_FaultInfo_FaultType
func (SupervisorState_FaultInfo_FaultType) EnumDescriptor
deprecated
func (SupervisorState_FaultInfo_FaultType) EnumDescriptor() ([]byte, []int)
Deprecated: Use SupervisorState_FaultInfo_FaultType.Descriptor instead.
func (SupervisorState_FaultInfo_FaultType) Number ¶
func (x SupervisorState_FaultInfo_FaultType) Number() protoreflect.EnumNumber
func (SupervisorState_FaultInfo_FaultType) String ¶
func (x SupervisorState_FaultInfo_FaultType) String() string
func (SupervisorState_FaultInfo_FaultType) Type ¶
func (SupervisorState_FaultInfo_FaultType) Type() protoreflect.EnumType
type SupervisorState_PowerChannelState ¶
type SupervisorState_PowerChannelState struct { VoltageVolts float32 `protobuf:"fixed32,1,opt,name=voltage_volts,json=voltageVolts,proto3" json:"voltage_volts,omitempty"` CurrentAmps float32 `protobuf:"fixed32,2,opt,name=current_amps,json=currentAmps,proto3" json:"current_amps,omitempty"` On bool `protobuf:"varint,3,opt,name=on,proto3" json:"on,omitempty"` // contains filtered or unexported fields }
func (*SupervisorState_PowerChannelState) Descriptor
deprecated
func (*SupervisorState_PowerChannelState) Descriptor() ([]byte, []int)
Deprecated: Use SupervisorState_PowerChannelState.ProtoReflect.Descriptor instead.
func (*SupervisorState_PowerChannelState) GetCurrentAmps ¶
func (x *SupervisorState_PowerChannelState) GetCurrentAmps() float32
func (*SupervisorState_PowerChannelState) GetOn ¶
func (x *SupervisorState_PowerChannelState) GetOn() bool
func (*SupervisorState_PowerChannelState) GetVoltageVolts ¶
func (x *SupervisorState_PowerChannelState) GetVoltageVolts() float32
func (*SupervisorState_PowerChannelState) ProtoMessage ¶
func (*SupervisorState_PowerChannelState) ProtoMessage()
func (*SupervisorState_PowerChannelState) ProtoReflect ¶
func (x *SupervisorState_PowerChannelState) ProtoReflect() protoreflect.Message
func (*SupervisorState_PowerChannelState) Reset ¶
func (x *SupervisorState_PowerChannelState) Reset()
func (*SupervisorState_PowerChannelState) String ¶
func (x *SupervisorState_PowerChannelState) String() string
type SupervisorState_State ¶
type SupervisorState_State int32
const ( SupervisorState_UNKNOWN SupervisorState_State = 0 SupervisorState_STARTING_VERIFY_PSU_OFF SupervisorState_State = 1 SupervisorState_STARTING_VERIFY_VOLTAGES SupervisorState_State = 2 SupervisorState_STARTING_ENABLE_CHANNELS SupervisorState_State = 3 SupervisorState_NORMAL SupervisorState_State = 4 SupervisorState_FAULT SupervisorState_State = 5 )
func (SupervisorState_State) Descriptor ¶
func (SupervisorState_State) Descriptor() protoreflect.EnumDescriptor
func (SupervisorState_State) Enum ¶
func (x SupervisorState_State) Enum() *SupervisorState_State
func (SupervisorState_State) EnumDescriptor
deprecated
func (SupervisorState_State) EnumDescriptor() ([]byte, []int)
Deprecated: Use SupervisorState_State.Descriptor instead.
func (SupervisorState_State) Number ¶
func (x SupervisorState_State) Number() protoreflect.EnumNumber
func (SupervisorState_State) String ¶
func (x SupervisorState_State) String() string
func (SupervisorState_State) Type ¶
func (SupervisorState_State) Type() protoreflect.EnumType
type ToSplitflap ¶
type ToSplitflap struct { Nonce uint32 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` // Types that are assignable to Payload: // // *ToSplitflap_SplitflapCommand // *ToSplitflap_SplitflapConfig // *ToSplitflap_RequestState Payload isToSplitflap_Payload `protobuf_oneof:"payload"` // contains filtered or unexported fields }
func (*ToSplitflap) Descriptor
deprecated
func (*ToSplitflap) Descriptor() ([]byte, []int)
Deprecated: Use ToSplitflap.ProtoReflect.Descriptor instead.
func (*ToSplitflap) GetNonce ¶
func (x *ToSplitflap) GetNonce() uint32
func (*ToSplitflap) GetPayload ¶
func (m *ToSplitflap) GetPayload() isToSplitflap_Payload
func (*ToSplitflap) GetRequestState ¶
func (x *ToSplitflap) GetRequestState() *RequestState
func (*ToSplitflap) GetSplitflapCommand ¶
func (x *ToSplitflap) GetSplitflapCommand() *SplitflapCommand
func (*ToSplitflap) GetSplitflapConfig ¶
func (x *ToSplitflap) GetSplitflapConfig() *SplitflapConfig
func (*ToSplitflap) ProtoMessage ¶
func (*ToSplitflap) ProtoMessage()
func (*ToSplitflap) ProtoReflect ¶
func (x *ToSplitflap) ProtoReflect() protoreflect.Message
func (*ToSplitflap) Reset ¶
func (x *ToSplitflap) Reset()
func (*ToSplitflap) String ¶
func (x *ToSplitflap) String() string
type ToSplitflap_RequestState ¶
type ToSplitflap_RequestState struct {
RequestState *RequestState `protobuf:"bytes,4,opt,name=request_state,json=requestState,proto3,oneof"`
}
type ToSplitflap_SplitflapCommand ¶
type ToSplitflap_SplitflapCommand struct {
SplitflapCommand *SplitflapCommand `protobuf:"bytes,2,opt,name=splitflap_command,json=splitflapCommand,proto3,oneof"`
}
type ToSplitflap_SplitflapConfig ¶
type ToSplitflap_SplitflapConfig struct {
SplitflapConfig *SplitflapConfig `protobuf:"bytes,3,opt,name=splitflap_config,json=splitflapConfig,proto3,oneof"`
}
type TypenameMangling ¶
type TypenameMangling int32
const ( TypenameMangling_M_NONE TypenameMangling = 0 // Default, no typename mangling TypenameMangling_M_STRIP_PACKAGE TypenameMangling = 1 // Strip current package name TypenameMangling_M_FLATTEN TypenameMangling = 2 // Only use last path component TypenameMangling_M_PACKAGE_INITIALS TypenameMangling = 3 // Replace the package name by the initials )
func (TypenameMangling) Descriptor ¶
func (TypenameMangling) Descriptor() protoreflect.EnumDescriptor
func (TypenameMangling) Enum ¶
func (x TypenameMangling) Enum() *TypenameMangling
func (TypenameMangling) EnumDescriptor
deprecated
func (TypenameMangling) EnumDescriptor() ([]byte, []int)
Deprecated: Use TypenameMangling.Descriptor instead.
func (TypenameMangling) Number ¶
func (x TypenameMangling) Number() protoreflect.EnumNumber
func (TypenameMangling) String ¶
func (x TypenameMangling) String() string
func (TypenameMangling) Type ¶
func (TypenameMangling) Type() protoreflect.EnumType
func (*TypenameMangling) UnmarshalJSON
deprecated
func (x *TypenameMangling) UnmarshalJSON(b []byte) error
Deprecated: Do not use.