Documentation
¶
Overview ¶
Package pipelines is a generated protocol buffer package.
It is generated from these files:
pipelines.proto
It has these top-level messages:
Emit Work Record Timer StartWorker
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrKillMeNow = errors.New("KILL ME NOW")
ErrKillMeNow is used for now to allow the clients to forcaviley kill themselves
Functions ¶
func EmitRecord ¶
EmitRecord transmits a record to the system
func Register ¶
func Register(name string, comp Computation)
Register registers a parent instance of a computaton as a potential worker
Types ¶
type Computation ¶
type Computation interface {
Start(context.Context, func()) (context.Context, error)
ProcessRecord(*Record) error
ProcessTimer(*Timer) error
}
Computation is the base interface for all working operations
type Emit ¶
type Emit struct {
Record *Record `protobuf:"bytes,1,opt,name=record" json:"record,omitempty"`
Stream string `protobuf:"bytes,2,opt,name=stream" json:"stream,omitempty"`
}
func (*Emit) Descriptor ¶
func (*Emit) ProtoMessage ¶
func (*Emit) ProtoMessage()
type Record ¶
type Record struct {
CorrelationID uint64 `protobuf:"varint,1,opt,name=correlationID" json:"correlationID,omitempty"`
Guid uint64 `protobuf:"varint,2,opt,name=guid" json:"guid,omitempty"`
Data string `protobuf:"bytes,3,opt,name=data" json:"data,omitempty"`
Test bool `protobuf:"varint,4,opt,name=test" json:"test,omitempty"`
}
func (*Record) Descriptor ¶
func (*Record) ProtoMessage ¶
func (*Record) ProtoMessage()
type StartWorker ¶
type StartWorker struct {
Service string `protobuf:"bytes,1,opt,name=service" json:"service,omitempty"`
Key string `protobuf:"bytes,2,opt,name=key" json:"key,omitempty"`
Command string `protobuf:"bytes,3,opt,name=command" json:"command,omitempty"`
Guid string `protobuf:"bytes,4,opt,name=guid" json:"guid,omitempty"`
}
func (*StartWorker) Descriptor ¶
func (*StartWorker) Descriptor() ([]byte, []int)
func (*StartWorker) ProtoMessage ¶
func (*StartWorker) ProtoMessage()
func (*StartWorker) Reset ¶
func (m *StartWorker) Reset()
func (*StartWorker) String ¶
func (m *StartWorker) String() string
type Timer ¶
type Timer struct {
CorrelationID uint64 `protobuf:"varint,1,opt,name=correlationID" json:"correlationID,omitempty"`
Guid uint64 `protobuf:"varint,2,opt,name=guid" json:"guid,omitempty"`
Stamp uint64 `protobuf:"varint,3,opt,name=stamp" json:"stamp,omitempty"`
}
func (*Timer) Descriptor ¶
func (*Timer) ProtoMessage ¶
func (*Timer) ProtoMessage()
type Work ¶
type Work struct {
Record *Record `protobuf:"bytes,1,opt,name=record" json:"record,omitempty"`
Service string `protobuf:"bytes,2,opt,name=service" json:"service,omitempty"`
Key string `protobuf:"bytes,3,opt,name=key" json:"key,omitempty"`
}
func (*Work) Descriptor ¶
func (*Work) ProtoMessage ¶
func (*Work) ProtoMessage()
func (Work) ServiceKey ¶
ServiceKey generates a worker address for the worker designed to execute this work
Click to show internal directories.
Click to hide internal directories.
