Documentation ¶
Index ¶
- Variables
- type Config
- type Job
- type Job_Operation
- func (Job_Operation) Descriptor() protoreflect.EnumDescriptor
- func (x Job_Operation) Enum() *Job_Operation
- func (Job_Operation) EnumDescriptor() ([]byte, []int)deprecated
- func (x Job_Operation) Number() protoreflect.EnumNumber
- func (x Job_Operation) String() string
- func (Job_Operation) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Job_Operation_name = map[int32]string{ 0: "INVALID", 1: "SETUP", 2: "SENSE", 3: "SHUTDOWN", } Job_Operation_value = map[string]int32{ "INVALID": 0, "SETUP": 1, "SENSE": 2, "SHUTDOWN": 3, } )
Enum value maps for Job_Operation.
View Source
var File_configpb_config_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { SupportedSensors []string `protobuf:"bytes,3,rep,name=supported_sensors,json=supportedSensors,proto3" json:"supported_sensors,omitempty"` Jobs []*Job `protobuf:"bytes,4,rep,name=jobs,proto3" json:"jobs,omitempty"` // contains filtered or unexported fields }
Config configures the iotcorelogger program.
func (*Config) Descriptor
deprecated
func (*Config) GetSupportedSensors ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
type Job ¶
type Job struct { // Cron spec that specifies when this job should run. Cronspec string `protobuf:"bytes,1,opt,name=cronspec,proto3" json:"cronspec,omitempty"` Operation Job_Operation `protobuf:"varint,2,opt,name=operation,proto3,enum=config.Job_Operation" json:"operation,omitempty"` // Sensors are processed in the order given. Sensors []string `protobuf:"bytes,3,rep,name=sensors,proto3" json:"sensors,omitempty"` // contains filtered or unexported fields }
func (*Job) Descriptor
deprecated
func (*Job) GetCronspec ¶
func (*Job) GetOperation ¶
func (x *Job) GetOperation() Job_Operation
func (*Job) GetSensors ¶
func (*Job) ProtoMessage ¶
func (*Job) ProtoMessage()
func (*Job) ProtoReflect ¶
func (x *Job) ProtoReflect() protoreflect.Message
type Job_Operation ¶
type Job_Operation int32
const ( Job_INVALID Job_Operation = 0 Job_SETUP Job_Operation = 1 Job_SENSE Job_Operation = 2 Job_SHUTDOWN Job_Operation = 3 )
func (Job_Operation) Descriptor ¶
func (Job_Operation) Descriptor() protoreflect.EnumDescriptor
func (Job_Operation) Enum ¶
func (x Job_Operation) Enum() *Job_Operation
func (Job_Operation) EnumDescriptor
deprecated
func (Job_Operation) EnumDescriptor() ([]byte, []int)
Deprecated: Use Job_Operation.Descriptor instead.
func (Job_Operation) Number ¶
func (x Job_Operation) Number() protoreflect.EnumNumber
func (Job_Operation) String ¶
func (x Job_Operation) String() string
func (Job_Operation) Type ¶
func (Job_Operation) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.