Documentation
¶
Overview ¶
Package orchestrator is a generated protocol buffer package.
It is generated from these files:
event.proto
It has these top-level messages:
Event Work
Index ¶
- Variables
- func DefaultConfig() *sarama.Config
- func UnmarshalEvent(inMsg *sarama.ConsumerMessage) (BatchID, Event, error)
- func UnmarshalWork(inMsg *sarama.ConsumerMessage) (BatchID, Work, error)
- type BatchID
- type Event
- func (*Event) Descriptor() ([]byte, []int)
- func (m *Event) GetBatchId() []byte
- func (m *Event) GetJobId() int32
- func (m *Event) GetParameters() *Event_Parameters
- func (m *Event) GetStatus() Event_Status
- func (m *Event) GetStatusLevel() Event_Level
- func (m *Event) Marshal() (dAtA []byte, err error)
- func (m *Event) MarshalTo(dAtA []byte) (int, error)
- func (*Event) ProtoMessage()
- func (m *Event) Reset()
- func (m *Event) Size() (n int)
- func (m *Event) String() string
- func (m *Event) Unmarshal(dAtA []byte) error
- type Event_Level
- type Event_Parameters
- func (*Event_Parameters) Descriptor() ([]byte, []int)
- func (m *Event_Parameters) GetFailureRate() float32
- func (m *Event_Parameters) GetJobCount() int32
- func (m *Event_Parameters) GetMeanDuration() int64
- func (m *Event_Parameters) Marshal() (dAtA []byte, err error)
- func (m *Event_Parameters) MarshalTo(dAtA []byte) (int, error)
- func (*Event_Parameters) ProtoMessage()
- func (m *Event_Parameters) Reset()
- func (m *Event_Parameters) Size() (n int)
- func (m *Event_Parameters) String() string
- func (m *Event_Parameters) Unmarshal(dAtA []byte) error
- type Event_Status
- type Work
- func (*Work) Descriptor() ([]byte, []int)
- func (m *Work) GetBatchId() []byte
- func (m *Work) GetDuration() int64
- func (m *Work) GetFailureRate() float32
- func (m *Work) GetJobId() int32
- func (m *Work) Marshal() (dAtA []byte, err error)
- func (m *Work) MarshalTo(dAtA []byte) (int, error)
- func (*Work) ProtoMessage()
- func (m *Work) Reset()
- func (m *Work) Size() (n int)
- func (m *Work) String() string
- func (m *Work) Unmarshal(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthEvent = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvent = fmt.Errorf("proto: integer overflow") )
View Source
var Event_Level_name = map[int32]string{
0: "BATCH",
1: "JOB",
}
View Source
var Event_Level_value = map[string]int32{
"BATCH": 0,
"JOB": 1,
}
View Source
var Event_Status_name = map[int32]string{
0: "MISSING",
1: "PENDING",
2: "RUNNING",
3: "SUCCESS",
4: "FAILURE",
}
View Source
var Event_Status_value = map[string]int32{
"MISSING": 0,
"PENDING": 1,
"RUNNING": 2,
"SUCCESS": 3,
"FAILURE": 4,
}
Functions ¶
func DefaultConfig ¶
func UnmarshalEvent ¶
func UnmarshalEvent(inMsg *sarama.ConsumerMessage) (BatchID, Event, error)
func UnmarshalWork ¶
func UnmarshalWork(inMsg *sarama.ConsumerMessage) (BatchID, Work, error)
Types ¶
type BatchID ¶
func (BatchID) MustMarshalBinary ¶
func (id BatchID) MustMarshalBinary() sarama.ByteEncoder
type Event ¶
type Event struct {
BatchId []byte `protobuf:"bytes,1,opt,name=batch_id,json=batchId,proto3" json:"batch_id,omitempty"`
JobId int32 `protobuf:"varint,2,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"`
StatusLevel Event_Level `protobuf:"varint,3,opt,name=status_level,json=statusLevel,proto3,enum=orchestrator.Event_Level" json:"status_level,omitempty"`
Status Event_Status `protobuf:"varint,4,opt,name=status,proto3,enum=orchestrator.Event_Status" json:"status,omitempty"`
Parameters *Event_Parameters `protobuf:"bytes,5,opt,name=parameters" json:"parameters,omitempty"`
}
func (*Event) Descriptor ¶
func (*Event) GetBatchId ¶
func (*Event) GetParameters ¶
func (m *Event) GetParameters() *Event_Parameters
func (*Event) GetStatus ¶
func (m *Event) GetStatus() Event_Status
func (*Event) GetStatusLevel ¶
func (m *Event) GetStatusLevel() Event_Level
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
type Event_Level ¶
type Event_Level int32
const ( Event_BATCH Event_Level = 0 Event_JOB Event_Level = 1 )
func (Event_Level) EnumDescriptor ¶
func (Event_Level) EnumDescriptor() ([]byte, []int)
func (Event_Level) String ¶
func (x Event_Level) String() string
type Event_Parameters ¶
type Event_Parameters struct {
JobCount int32 `protobuf:"varint,1,opt,name=job_count,json=jobCount,proto3" json:"job_count,omitempty"`
MeanDuration int64 `protobuf:"varint,2,opt,name=mean_duration,json=meanDuration,proto3" json:"mean_duration,omitempty"`
FailureRate float32 `protobuf:"fixed32,3,opt,name=failure_rate,json=failureRate,proto3" json:"failure_rate,omitempty"`
}
func (*Event_Parameters) Descriptor ¶
func (*Event_Parameters) Descriptor() ([]byte, []int)
func (*Event_Parameters) GetFailureRate ¶
func (m *Event_Parameters) GetFailureRate() float32
func (*Event_Parameters) GetJobCount ¶
func (m *Event_Parameters) GetJobCount() int32
func (*Event_Parameters) GetMeanDuration ¶
func (m *Event_Parameters) GetMeanDuration() int64
func (*Event_Parameters) Marshal ¶
func (m *Event_Parameters) Marshal() (dAtA []byte, err error)
func (*Event_Parameters) ProtoMessage ¶
func (*Event_Parameters) ProtoMessage()
func (*Event_Parameters) Reset ¶
func (m *Event_Parameters) Reset()
func (*Event_Parameters) Size ¶
func (m *Event_Parameters) Size() (n int)
func (*Event_Parameters) String ¶
func (m *Event_Parameters) String() string
func (*Event_Parameters) Unmarshal ¶
func (m *Event_Parameters) Unmarshal(dAtA []byte) error
type Event_Status ¶
type Event_Status int32
const ( Event_MISSING Event_Status = 0 Event_PENDING Event_Status = 1 Event_RUNNING Event_Status = 2 Event_SUCCESS Event_Status = 3 Event_FAILURE Event_Status = 4 )
func (Event_Status) EnumDescriptor ¶
func (Event_Status) EnumDescriptor() ([]byte, []int)
func (Event_Status) String ¶
func (x Event_Status) String() string
type Work ¶
type Work struct {
BatchId []byte `protobuf:"bytes,1,opt,name=batch_id,json=batchId,proto3" json:"batch_id,omitempty"`
JobId int32 `protobuf:"varint,2,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"`
Duration int64 `protobuf:"varint,3,opt,name=duration,proto3" json:"duration,omitempty"`
FailureRate float32 `protobuf:"fixed32,4,opt,name=failure_rate,json=failureRate,proto3" json:"failure_rate,omitempty"`
}
func (*Work) Descriptor ¶
func (*Work) GetBatchId ¶
func (*Work) GetDuration ¶
func (*Work) GetFailureRate ¶
func (*Work) ProtoMessage ¶
func (*Work) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.