configpb

package
v0.0.0-...-030e278 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetJobs

func (x *Config) GetJobs() []*Job

func (*Config) GetSupportedSensors

func (x *Config) GetSupportedSensors() []string

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

func (x *Config) ProtoReflect() protoreflect.Message

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Job.ProtoReflect.Descriptor instead.

func (*Job) GetCronspec

func (x *Job) GetCronspec() string

func (*Job) GetOperation

func (x *Job) GetOperation() Job_Operation

func (*Job) GetSensors

func (x *Job) GetSensors() []string

func (*Job) ProtoMessage

func (*Job) ProtoMessage()

func (*Job) ProtoReflect

func (x *Job) ProtoReflect() protoreflect.Message

func (*Job) Reset

func (x *Job) Reset()

func (*Job) String

func (x *Job) String() string

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) 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 (Job_Operation) String

func (x Job_Operation) String() string

func (Job_Operation) Type

Jump to

Keyboard shortcuts

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