Documentation ¶
Index ¶
- type Checkpoint
- func (*Checkpoint) Descriptor() ([]byte, []int)
- func (m *Checkpoint) GetFrom() int64
- func (m *Checkpoint) GetSeq() uint64
- func (m *Checkpoint) GetTo() int64
- func (*Checkpoint) ProtoMessage()
- func (m *Checkpoint) Reset()
- func (m *Checkpoint) String() string
- func (m *Checkpoint) XXX_DiscardUnknown()
- func (m *Checkpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Checkpoint) XXX_Merge(src proto.Message)
- func (m *Checkpoint) XXX_Size() int
- func (m *Checkpoint) XXX_Unmarshal(b []byte) error
- type Event
- func (*Event) Descriptor() ([]byte, []int)
- func (m *Event) GetAttempt() uint32
- func (m *Event) GetDue() int64
- func (m *Event) GetId() string
- func (m *Event) GetJob() *Job
- func (*Event) ProtoMessage()
- func (m *Event) Reset()
- func (m *Event) String() string
- func (m *Event) XXX_DiscardUnknown()
- func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Event) XXX_Merge(src proto.Message)
- func (m *Event) XXX_Size() int
- func (m *Event) XXX_Unmarshal(b []byte) error
- type Job
- func (*Job) Descriptor() ([]byte, []int)
- func (m *Job) GetData() []byte
- func (m *Job) GetDue() int64
- func (m *Job) GetId() string
- func (m *Job) GetOptions() *JobOptions
- func (m *Job) GetTarget() string
- func (*Job) ProtoMessage()
- func (m *Job) Reset()
- func (m *Job) String() string
- func (m *Job) XXX_DiscardUnknown()
- func (m *Job) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Job) XXX_Merge(src proto.Message)
- func (m *Job) XXX_Size() int
- func (m *Job) XXX_Unmarshal(b []byte) error
- type JobOptions
- func (*JobOptions) Descriptor() ([]byte, []int)
- func (m *JobOptions) GetAgeLimit() int64
- func (m *JobOptions) GetMaxBackOff() int64
- func (m *JobOptions) GetMinBackOff() int64
- func (m *JobOptions) GetRetryLimit() uint32
- func (*JobOptions) ProtoMessage()
- func (m *JobOptions) Reset()
- func (m *JobOptions) String() string
- func (m *JobOptions) XXX_DiscardUnknown()
- func (m *JobOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *JobOptions) XXX_Merge(src proto.Message)
- func (m *JobOptions) XXX_Size() int
- func (m *JobOptions) XXX_Unmarshal(b []byte) error
- type Partition
- func (*Partition) Descriptor() ([]byte, []int)
- func (m *Partition) GetFrom() int64
- func (m *Partition) GetKeys() []string
- func (m *Partition) GetTo() int64
- func (*Partition) ProtoMessage()
- func (m *Partition) Reset()
- func (m *Partition) String() string
- func (m *Partition) XXX_DiscardUnknown()
- func (m *Partition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Partition) XXX_Merge(src proto.Message)
- func (m *Partition) XXX_Size() int
- func (m *Partition) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checkpoint ¶
type Checkpoint struct { Seq uint64 `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"` From int64 `protobuf:"varint,2,opt,name=from,proto3" json:"from,omitempty"` To int64 `protobuf:"varint,3,opt,name=to,proto3" json:"to,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Checkpoint stores a time range. It is used to store the last load performed as a checkpoint to resume processing where it was left off.
func (*Checkpoint) Descriptor ¶
func (*Checkpoint) Descriptor() ([]byte, []int)
func (*Checkpoint) GetFrom ¶
func (m *Checkpoint) GetFrom() int64
func (*Checkpoint) GetSeq ¶
func (m *Checkpoint) GetSeq() uint64
func (*Checkpoint) GetTo ¶
func (m *Checkpoint) GetTo() int64
func (*Checkpoint) ProtoMessage ¶
func (*Checkpoint) ProtoMessage()
func (*Checkpoint) Reset ¶
func (m *Checkpoint) Reset()
func (*Checkpoint) String ¶
func (m *Checkpoint) String() string
func (*Checkpoint) XXX_DiscardUnknown ¶
func (m *Checkpoint) XXX_DiscardUnknown()
func (*Checkpoint) XXX_Marshal ¶
func (m *Checkpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Checkpoint) XXX_Merge ¶
func (m *Checkpoint) XXX_Merge(src proto.Message)
func (*Checkpoint) XXX_Size ¶
func (m *Checkpoint) XXX_Size() int
func (*Checkpoint) XXX_Unmarshal ¶
func (m *Checkpoint) XXX_Unmarshal(b []byte) error
type Event ¶
type Event struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Due int64 `protobuf:"varint,2,opt,name=due,proto3" json:"due,omitempty"` Attempt uint32 `protobuf:"varint,3,opt,name=attempt,proto3" json:"attempt,omitempty"` Job *Job `protobuf:"bytes,15,opt,name=job,proto3" json:"job,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
An Event is an occurence of a job executed at a specific time. There is one event per job execution.
func (*Event) Descriptor ¶
func (*Event) GetAttempt ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) XXX_DiscardUnknown ¶
func (m *Event) XXX_DiscardUnknown()
func (*Event) XXX_Marshal ¶
func (*Event) XXX_Unmarshal ¶
type Job ¶
type Job struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Target string `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"` Due int64 `protobuf:"varint,3,opt,name=due,proto3" json:"due,omitempty"` Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` Options *JobOptions `protobuf:"bytes,14,opt,name=options,proto3" json:"options,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A Job is a one-time task definition
func (*Job) Descriptor ¶
func (*Job) GetOptions ¶
func (m *Job) GetOptions() *JobOptions
func (*Job) ProtoMessage ¶
func (*Job) ProtoMessage()
func (*Job) XXX_DiscardUnknown ¶
func (m *Job) XXX_DiscardUnknown()
func (*Job) XXX_Unmarshal ¶
type JobOptions ¶
type JobOptions struct { RetryLimit uint32 `protobuf:"varint,1,opt,name=retryLimit,proto3" json:"retryLimit,omitempty"` MinBackOff int64 `protobuf:"varint,2,opt,name=minBackOff,proto3" json:"minBackOff,omitempty"` MaxBackOff int64 `protobuf:"varint,3,opt,name=maxBackOff,proto3" json:"maxBackOff,omitempty"` AgeLimit int64 `protobuf:"varint,4,opt,name=ageLimit,proto3" json:"ageLimit,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
JobOptions contains job execution options
func (*JobOptions) Descriptor ¶
func (*JobOptions) Descriptor() ([]byte, []int)
func (*JobOptions) GetAgeLimit ¶
func (m *JobOptions) GetAgeLimit() int64
func (*JobOptions) GetMaxBackOff ¶
func (m *JobOptions) GetMaxBackOff() int64
func (*JobOptions) GetMinBackOff ¶
func (m *JobOptions) GetMinBackOff() int64
func (*JobOptions) GetRetryLimit ¶
func (m *JobOptions) GetRetryLimit() uint32
func (*JobOptions) ProtoMessage ¶
func (*JobOptions) ProtoMessage()
func (*JobOptions) Reset ¶
func (m *JobOptions) Reset()
func (*JobOptions) String ¶
func (m *JobOptions) String() string
func (*JobOptions) XXX_DiscardUnknown ¶
func (m *JobOptions) XXX_DiscardUnknown()
func (*JobOptions) XXX_Marshal ¶
func (m *JobOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*JobOptions) XXX_Merge ¶
func (m *JobOptions) XXX_Merge(src proto.Message)
func (*JobOptions) XXX_Size ¶
func (m *JobOptions) XXX_Size() int
func (*JobOptions) XXX_Unmarshal ¶
func (m *JobOptions) XXX_Unmarshal(b []byte) error
type Partition ¶
type Partition struct { From int64 `protobuf:"varint,1,opt,name=from,proto3" json:"from,omitempty"` To int64 `protobuf:"varint,2,opt,name=to,proto3" json:"to,omitempty"` Keys []string `protobuf:"bytes,3,rep,name=keys,proto3" json:"keys,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A Partition stores event keys within a specific time range
func (*Partition) Descriptor ¶
func (*Partition) ProtoMessage ¶
func (*Partition) ProtoMessage()
func (*Partition) XXX_DiscardUnknown ¶
func (m *Partition) XXX_DiscardUnknown()
func (*Partition) XXX_Marshal ¶
func (*Partition) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.