Documentation ¶
Index ¶
- Variables
- type DeviceState
- func (DeviceState) Descriptor() protoreflect.EnumDescriptor
- func (x DeviceState) Enum() *DeviceState
- func (DeviceState) EnumDescriptor() ([]byte, []int)deprecated
- func (x DeviceState) Number() protoreflect.EnumNumber
- func (x DeviceState) String() string
- func (DeviceState) Type() protoreflect.EnumType
- type ModuleState
- func (ModuleState) Descriptor() protoreflect.EnumDescriptor
- func (x ModuleState) Enum() *ModuleState
- func (ModuleState) EnumDescriptor() ([]byte, []int)deprecated
- func (x ModuleState) Number() protoreflect.EnumNumber
- func (x ModuleState) String() string
- func (ModuleState) Type() protoreflect.EnumType
- type TaskState
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DeviceState_name = map[int32]string{ 0: "DEVICE_STATE_UNKNOWN", 1: "DEVICE_STATE_ONLINE", 2: "DEVICE_STATE_OFFLINE", } DeviceState_value = map[string]int32{ "DEVICE_STATE_UNKNOWN": 0, "DEVICE_STATE_ONLINE": 1, "DEVICE_STATE_OFFLINE": 2, } )
Enum value maps for DeviceState.
View Source
var ( ModuleState_name = map[int32]string{ 0: "MODULE_STATE_UNKNOWN", 1: "MODULE_STATE_ONLINE", 2: "MODULE_STATE_OFFLINE", } ModuleState_value = map[string]int32{ "MODULE_STATE_UNKNOWN": 0, "MODULE_STATE_ONLINE": 1, "MODULE_STATE_OFFLINE": 2, } )
Enum value maps for ModuleState.
View Source
var ( TaskState_name = map[int32]string{ 0: "TASK_STATE_UNKNOWN", 10: "TASK_STATE_CREATED", 20: "TASK_STATE_PENDING", 30: "TASK_STATE_RUNNING", 40: "TASK_STATE_DONE", 50: "TASK_STATE_ERROR", } TaskState_value = map[string]int32{ "TASK_STATE_UNKNOWN": 0, "TASK_STATE_CREATED": 10, "TASK_STATE_PENDING": 20, "TASK_STATE_RUNNING": 30, "TASK_STATE_DONE": 40, "TASK_STATE_ERROR": 50, } )
Enum value maps for TaskState.
View Source
var File_device_proto protoreflect.FileDescriptor
View Source
var File_module_proto protoreflect.FileDescriptor
View Source
var File_task_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type DeviceState ¶
type DeviceState int32
const ( DeviceState_DEVICE_STATE_UNKNOWN DeviceState = 0 DeviceState_DEVICE_STATE_ONLINE DeviceState = 1 DeviceState_DEVICE_STATE_OFFLINE DeviceState = 2 )
func (DeviceState) Descriptor ¶ added in v1.2.14
func (DeviceState) Descriptor() protoreflect.EnumDescriptor
func (DeviceState) Enum ¶ added in v1.2.14
func (x DeviceState) Enum() *DeviceState
func (DeviceState) EnumDescriptor
deprecated
func (DeviceState) EnumDescriptor() ([]byte, []int)
Deprecated: Use DeviceState.Descriptor instead.
func (DeviceState) Number ¶ added in v1.2.14
func (x DeviceState) Number() protoreflect.EnumNumber
func (DeviceState) String ¶
func (x DeviceState) String() string
func (DeviceState) Type ¶ added in v1.2.14
func (DeviceState) Type() protoreflect.EnumType
type ModuleState ¶
type ModuleState int32
const ( ModuleState_MODULE_STATE_UNKNOWN ModuleState = 0 ModuleState_MODULE_STATE_ONLINE ModuleState = 1 ModuleState_MODULE_STATE_OFFLINE ModuleState = 2 )
func (ModuleState) Descriptor ¶ added in v1.2.14
func (ModuleState) Descriptor() protoreflect.EnumDescriptor
func (ModuleState) Enum ¶ added in v1.2.14
func (x ModuleState) Enum() *ModuleState
func (ModuleState) EnumDescriptor
deprecated
func (ModuleState) EnumDescriptor() ([]byte, []int)
Deprecated: Use ModuleState.Descriptor instead.
func (ModuleState) Number ¶ added in v1.2.14
func (x ModuleState) Number() protoreflect.EnumNumber
func (ModuleState) String ¶
func (x ModuleState) String() string
func (ModuleState) Type ¶ added in v1.2.14
func (ModuleState) Type() protoreflect.EnumType
type TaskState ¶
type TaskState int32
func (TaskState) Descriptor ¶ added in v1.2.14
func (TaskState) Descriptor() protoreflect.EnumDescriptor
func (TaskState) EnumDescriptor
deprecated
func (TaskState) Number ¶ added in v1.2.14
func (x TaskState) Number() protoreflect.EnumNumber
func (TaskState) Type ¶ added in v1.2.14
func (TaskState) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.