state

package
v1.2.15 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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

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) 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

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) 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

type TaskState

type TaskState int32
const (
	TaskState_TASK_STATE_UNKNOWN TaskState = 0
	TaskState_TASK_STATE_CREATED TaskState = 10
	TaskState_TASK_STATE_PENDING TaskState = 20
	TaskState_TASK_STATE_RUNNING TaskState = 30
	TaskState_TASK_STATE_DONE    TaskState = 40
	TaskState_TASK_STATE_ERROR   TaskState = 50
)

func (TaskState) Descriptor added in v1.2.14

func (TaskState) Descriptor() protoreflect.EnumDescriptor

func (TaskState) Enum added in v1.2.14

func (x TaskState) Enum() *TaskState

func (TaskState) EnumDescriptor deprecated

func (TaskState) EnumDescriptor() ([]byte, []int)

Deprecated: Use TaskState.Descriptor instead.

func (TaskState) Number added in v1.2.14

func (x TaskState) Number() protoreflect.EnumNumber

func (TaskState) String

func (x TaskState) String() string

func (TaskState) Type added in v1.2.14

Jump to

Keyboard shortcuts

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