orchestrator

package
v0.0.0-...-fc9da84 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2019 License: MIT Imports: 6 Imported by: 0

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

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 DefaultConfig() *sarama.Config

func UnmarshalEvent

func UnmarshalEvent(inMsg *sarama.ConsumerMessage) (BatchID, Event, error)

func UnmarshalWork

func UnmarshalWork(inMsg *sarama.ConsumerMessage) (BatchID, Work, error)

Types

type BatchID

type BatchID ulid.ULID

func (BatchID) MustMarshalBinary

func (id BatchID) MustMarshalBinary() sarama.ByteEncoder

func (BatchID) String

func (id BatchID) String() string

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

func (*Event) GetBatchId

func (m *Event) GetBatchId() []byte

func (*Event) GetJobId

func (m *Event) GetJobId() int32

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

func (m *Event) Marshal() (dAtA []byte, err error)

func (*Event) MarshalTo

func (m *Event) MarshalTo(dAtA []byte) (int, error)

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) Reset

func (m *Event) Reset()

func (*Event) Size

func (m *Event) Size() (n int)

func (*Event) String

func (m *Event) String() string

func (*Event) Unmarshal

func (m *Event) Unmarshal(dAtA []byte) error

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

func (m *Event_Parameters) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*Work) GetBatchId

func (m *Work) GetBatchId() []byte

func (*Work) GetDuration

func (m *Work) GetDuration() int64

func (*Work) GetFailureRate

func (m *Work) GetFailureRate() float32

func (*Work) GetJobId

func (m *Work) GetJobId() int32

func (*Work) Marshal

func (m *Work) Marshal() (dAtA []byte, err error)

func (*Work) MarshalTo

func (m *Work) MarshalTo(dAtA []byte) (int, error)

func (*Work) ProtoMessage

func (*Work) ProtoMessage()

func (*Work) Reset

func (m *Work) Reset()

func (*Work) Size

func (m *Work) Size() (n int)

func (*Work) String

func (m *Work) String() string

func (*Work) Unmarshal

func (m *Work) Unmarshal(dAtA []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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