Documentation
¶
Index ¶
- Variables
- func RegisterAgentServer(s *grpc.Server, srv AgentServer)
- func RegisterWorkerServer(s *grpc.Server, srv WorkerServer)
- type AgentClient
- type AgentServer
- type DoJobRequest
- func (*DoJobRequest) Descriptor() ([]byte, []int)
- func (m *DoJobRequest) GetJob() *Job
- func (m *DoJobRequest) GetSeed() *Seed
- func (*DoJobRequest) ProtoMessage()
- func (m *DoJobRequest) Reset()
- func (m *DoJobRequest) String() string
- func (m *DoJobRequest) XXX_DiscardUnknown()
- func (m *DoJobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DoJobRequest) XXX_Merge(src proto.Message)
- func (m *DoJobRequest) XXX_Size() int
- func (m *DoJobRequest) XXX_Unmarshal(b []byte) error
- type Entity
- func (*Entity) Descriptor() ([]byte, []int)
- func (m *Entity) GetId() string
- func (m *Entity) GetMeta() *Meta
- func (*Entity) ProtoMessage()
- func (m *Entity) Reset()
- func (m *Entity) String() string
- func (m *Entity) XXX_DiscardUnknown()
- func (m *Entity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Entity) XXX_Merge(src proto.Message)
- func (m *Entity) XXX_Size() int
- func (m *Entity) XXX_Unmarshal(b []byte) error
- type Execution
- func (*Execution) Descriptor() ([]byte, []int)
- func (m *Execution) GetEndTime() *timestamp.Timestamp
- func (m *Execution) GetError() string
- func (m *Execution) GetId() string
- func (m *Execution) GetJobId() string
- func (m *Execution) GetSeedId() string
- func (m *Execution) GetStartTime() *timestamp.Timestamp
- func (m *Execution) GetState() Execution_State
- func (m *Execution) GetStatuses() int32
- func (*Execution) ProtoMessage()
- func (m *Execution) Reset()
- func (m *Execution) String() string
- func (m *Execution) XXX_DiscardUnknown()
- func (m *Execution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Execution) XXX_Merge(src proto.Message)
- func (m *Execution) XXX_Size() int
- func (m *Execution) XXX_Unmarshal(b []byte) error
- type Execution_State
- type Job
- func (*Job) Descriptor() ([]byte, []int)
- func (m *Job) GetCronExpression() string
- func (m *Job) GetDisabled() bool
- func (m *Job) GetId() string
- func (m *Job) GetMeta() *Meta
- func (m *Job) GetValidFrom() *timestamp.Timestamp
- func (m *Job) GetValidTo() *timestamp.Timestamp
- 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 Label
- func (*Label) Descriptor() ([]byte, []int)
- func (m *Label) GetKey() string
- func (m *Label) GetValue() string
- func (*Label) ProtoMessage()
- func (m *Label) Reset()
- func (m *Label) String() string
- func (m *Label) XXX_DiscardUnknown()
- func (m *Label) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Label) XXX_Merge(src proto.Message)
- func (m *Label) XXX_Size() int
- func (m *Label) XXX_Unmarshal(b []byte) error
- type Meta
- func (*Meta) Descriptor() ([]byte, []int)
- func (m *Meta) GetCreated() *timestamp.Timestamp
- func (m *Meta) GetCreatedBy() string
- func (m *Meta) GetDescription() string
- func (m *Meta) GetLabel() []*Label
- func (m *Meta) GetLastModified() *timestamp.Timestamp
- func (m *Meta) GetLastModifiedBy() string
- func (m *Meta) GetName() string
- func (*Meta) ProtoMessage()
- func (m *Meta) Reset()
- func (m *Meta) String() string
- func (m *Meta) XXX_DiscardUnknown()
- func (m *Meta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Meta) XXX_Merge(src proto.Message)
- func (m *Meta) XXX_Size() int
- func (m *Meta) XXX_Unmarshal(b []byte) error
- type Parameter
- func (*Parameter) Descriptor() ([]byte, []int)
- func (m *Parameter) GetCount() int32
- func (m *Parameter) GetGeocode() string
- func (m *Parameter) GetId() string
- func (m *Parameter) GetIncludeEntities() bool
- func (m *Parameter) GetLang() string
- func (m *Parameter) GetLocale() string
- func (m *Parameter) GetMaxId() string
- func (m *Parameter) GetQuery() string
- func (m *Parameter) GetResultType() string
- func (m *Parameter) GetSinceId() string
- func (m *Parameter) GetTweetMode() string
- func (m *Parameter) GetUntil() string
- func (*Parameter) ProtoMessage()
- func (m *Parameter) Reset()
- func (m *Parameter) String() string
- func (m *Parameter) XXX_DiscardUnknown()
- func (m *Parameter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Parameter) XXX_Merge(src proto.Message)
- func (m *Parameter) XXX_Size() int
- func (m *Parameter) XXX_Unmarshal(b []byte) error
- type QueuedSeed
- func (*QueuedSeed) Descriptor() ([]byte, []int)
- func (m *QueuedSeed) GetExecutionId() string
- func (m *QueuedSeed) GetId() string
- func (m *QueuedSeed) GetParameter() *Parameter
- func (m *QueuedSeed) GetSeedId() string
- func (m *QueuedSeed) GetSeq() int32
- func (*QueuedSeed) ProtoMessage()
- func (m *QueuedSeed) Reset()
- func (m *QueuedSeed) String() string
- func (m *QueuedSeed) XXX_DiscardUnknown()
- func (m *QueuedSeed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueuedSeed) XXX_Merge(src proto.Message)
- func (m *QueuedSeed) XXX_Size() int
- func (m *QueuedSeed) XXX_Unmarshal(b []byte) error
- type RateLimit
- func (*RateLimit) Descriptor() ([]byte, []int)
- func (m *RateLimit) GetLimit() int32
- func (m *RateLimit) GetRemaining() int32
- func (m *RateLimit) GetReset_() *timestamp.Timestamp
- func (*RateLimit) ProtoMessage()
- func (m *RateLimit) Reset()
- func (m *RateLimit) String() string
- func (m *RateLimit) XXX_DiscardUnknown()
- func (m *RateLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RateLimit) XXX_Merge(src proto.Message)
- func (m *RateLimit) XXX_Size() int
- func (m *RateLimit) XXX_Unmarshal(b []byte) error
- type Seed
- func (*Seed) Descriptor() ([]byte, []int)
- func (m *Seed) GetDisabled() bool
- func (m *Seed) GetEntityId() string
- func (m *Seed) GetId() string
- func (m *Seed) GetJobId() []string
- func (m *Seed) GetMeta() *Meta
- func (*Seed) ProtoMessage()
- func (m *Seed) Reset()
- func (m *Seed) String() string
- func (m *Seed) XXX_DiscardUnknown()
- func (m *Seed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Seed) XXX_Merge(src proto.Message)
- func (m *Seed) XXX_Size() int
- func (m *Seed) XXX_Unmarshal(b []byte) error
- type WorkReply
- func (*WorkReply) Descriptor() ([]byte, []int)
- func (m *WorkReply) GetCount() int32
- func (m *WorkReply) GetMaxId() string
- func (m *WorkReply) GetQueuedSeed() *QueuedSeed
- func (m *WorkReply) GetRateLimit() *RateLimit
- func (m *WorkReply) GetSinceId() string
- func (*WorkReply) ProtoMessage()
- func (m *WorkReply) Reset()
- func (m *WorkReply) String() string
- func (m *WorkReply) XXX_DiscardUnknown()
- func (m *WorkReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WorkReply) XXX_Merge(src proto.Message)
- func (m *WorkReply) XXX_Size() int
- func (m *WorkReply) XXX_Unmarshal(b []byte) error
- type WorkRequest
- func (*WorkRequest) Descriptor() ([]byte, []int)
- func (m *WorkRequest) GetQueuedSeed() *QueuedSeed
- func (*WorkRequest) ProtoMessage()
- func (m *WorkRequest) Reset()
- func (m *WorkRequest) String() string
- func (m *WorkRequest) XXX_DiscardUnknown()
- func (m *WorkRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WorkRequest) XXX_Merge(src proto.Message)
- func (m *WorkRequest) XXX_Size() int
- func (m *WorkRequest) XXX_Unmarshal(b []byte) error
- type WorkerClient
- type WorkerServer
Constants ¶
This section is empty.
Variables ¶
View Source
var Execution_State_name = map[int32]string{
0: "UNDEFINED",
1: "CREATED",
2: "FETCHING",
3: "FINISHED",
4: "ABORTED",
5: "FAILED",
}
View Source
var Execution_State_value = map[string]int32{
"UNDEFINED": 0,
"CREATED": 1,
"FETCHING": 2,
"FINISHED": 3,
"ABORTED": 4,
"FAILED": 5,
}
Functions ¶
func RegisterAgentServer ¶
func RegisterAgentServer(s *grpc.Server, srv AgentServer)
func RegisterWorkerServer ¶
func RegisterWorkerServer(s *grpc.Server, srv WorkerServer)
Types ¶
type AgentClient ¶
type AgentClient interface {
Do(ctx context.Context, in *DoJobRequest, opts ...grpc.CallOption) (*empty.Empty, error)
}
AgentClient is the client API for Agent service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAgentClient ¶
func NewAgentClient(cc *grpc.ClientConn) AgentClient
type AgentServer ¶
AgentServer is the server API for Agent service.
type DoJobRequest ¶
type DoJobRequest struct { Job *Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` Seed *Seed `protobuf:"bytes,2,opt,name=seed,proto3" json:"seed,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DoJobRequest) Descriptor ¶
func (*DoJobRequest) Descriptor() ([]byte, []int)
func (*DoJobRequest) GetJob ¶
func (m *DoJobRequest) GetJob() *Job
func (*DoJobRequest) GetSeed ¶
func (m *DoJobRequest) GetSeed() *Seed
func (*DoJobRequest) ProtoMessage ¶
func (*DoJobRequest) ProtoMessage()
func (*DoJobRequest) Reset ¶
func (m *DoJobRequest) Reset()
func (*DoJobRequest) String ¶
func (m *DoJobRequest) String() string
func (*DoJobRequest) XXX_DiscardUnknown ¶
func (m *DoJobRequest) XXX_DiscardUnknown()
func (*DoJobRequest) XXX_Marshal ¶
func (m *DoJobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DoJobRequest) XXX_Merge ¶
func (m *DoJobRequest) XXX_Merge(src proto.Message)
func (*DoJobRequest) XXX_Size ¶
func (m *DoJobRequest) XXX_Size() int
func (*DoJobRequest) XXX_Unmarshal ¶
func (m *DoJobRequest) XXX_Unmarshal(b []byte) error
type Entity ¶
type Entity struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Meta *Meta `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Entity) Descriptor ¶
func (*Entity) ProtoMessage ¶
func (*Entity) ProtoMessage()
func (*Entity) XXX_DiscardUnknown ¶
func (m *Entity) XXX_DiscardUnknown()
func (*Entity) XXX_Marshal ¶
func (*Entity) XXX_Unmarshal ¶
type Execution ¶
type Execution struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` State Execution_State `protobuf:"varint,2,opt,name=state,proto3,enum=api.Execution_State" json:"state,omitempty"` JobId string `protobuf:"bytes,3,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` SeedId string `protobuf:"bytes,4,opt,name=seed_id,json=seedId,proto3" json:"seed_id,omitempty"` StartTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` EndTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` Statuses int32 `protobuf:"varint,8,opt,name=statuses,proto3" json:"statuses,omitempty"` Error string `protobuf:"bytes,15,opt,name=error,proto3" json:"error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Execution) Descriptor ¶
func (*Execution) GetEndTime ¶
func (*Execution) GetStartTime ¶
func (*Execution) GetState ¶
func (m *Execution) GetState() Execution_State
func (*Execution) GetStatuses ¶
func (*Execution) ProtoMessage ¶
func (*Execution) ProtoMessage()
func (*Execution) XXX_DiscardUnknown ¶
func (m *Execution) XXX_DiscardUnknown()
func (*Execution) XXX_Marshal ¶
func (*Execution) XXX_Unmarshal ¶
type Execution_State ¶
type Execution_State int32
const ( Execution_UNDEFINED Execution_State = 0 Execution_CREATED Execution_State = 1 Execution_FETCHING Execution_State = 2 Execution_FINISHED Execution_State = 3 Execution_ABORTED Execution_State = 4 Execution_FAILED Execution_State = 5 )
func (Execution_State) EnumDescriptor ¶
func (Execution_State) EnumDescriptor() ([]byte, []int)
func (Execution_State) String ¶
func (x Execution_State) String() string
type Job ¶
type Job struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Meta *Meta `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"` CronExpression string `protobuf:"bytes,3,opt,name=cron_expression,json=cronExpression,proto3" json:"cron_expression,omitempty"` ValidFrom *timestamp.Timestamp `protobuf:"bytes,4,opt,name=valid_from,json=validFrom,proto3" json:"valid_from,omitempty"` ValidTo *timestamp.Timestamp `protobuf:"bytes,5,opt,name=valid_to,json=validTo,proto3" json:"valid_to,omitempty"` Disabled bool `protobuf:"varint,15,opt,name=disabled,proto3" json:"disabled,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Job) Descriptor ¶
func (*Job) GetCronExpression ¶
func (*Job) GetDisabled ¶
func (*Job) GetValidFrom ¶
func (*Job) GetValidTo ¶
func (*Job) ProtoMessage ¶
func (*Job) ProtoMessage()
func (*Job) XXX_DiscardUnknown ¶
func (m *Job) XXX_DiscardUnknown()
func (*Job) XXX_Unmarshal ¶
type Label ¶
type Label struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Label) Descriptor ¶
func (*Label) ProtoMessage ¶
func (*Label) ProtoMessage()
func (*Label) XXX_DiscardUnknown ¶
func (m *Label) XXX_DiscardUnknown()
func (*Label) XXX_Marshal ¶
func (*Label) XXX_Unmarshal ¶
type Meta ¶
type Meta struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Created *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created,proto3" json:"created,omitempty"` CreatedBy string `protobuf:"bytes,4,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"` LastModified *timestamp.Timestamp `protobuf:"bytes,5,opt,name=last_modified,json=lastModified,proto3" json:"last_modified,omitempty"` LastModifiedBy string `protobuf:"bytes,6,opt,name=last_modified_by,json=lastModifiedBy,proto3" json:"last_modified_by,omitempty"` Label []*Label `protobuf:"bytes,7,rep,name=label,proto3" json:"label,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Meta) Descriptor ¶
func (*Meta) GetCreated ¶
func (*Meta) GetCreatedBy ¶
func (*Meta) GetDescription ¶
func (*Meta) GetLastModified ¶
func (*Meta) GetLastModifiedBy ¶
func (*Meta) ProtoMessage ¶
func (*Meta) ProtoMessage()
func (*Meta) XXX_DiscardUnknown ¶
func (m *Meta) XXX_DiscardUnknown()
func (*Meta) XXX_Unmarshal ¶
type Parameter ¶
type Parameter struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Query string `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"` MaxId string `protobuf:"bytes,4,opt,name=max_id,json=maxId,proto3" json:"max_id,omitempty"` SinceId string `protobuf:"bytes,5,opt,name=since_id,json=sinceId,proto3" json:"since_id,omitempty"` Geocode string `protobuf:"bytes,6,opt,name=geocode,proto3" json:"geocode,omitempty"` Lang string `protobuf:"bytes,7,opt,name=lang,proto3" json:"lang,omitempty"` ResultType string `protobuf:"bytes,8,opt,name=result_type,json=resultType,proto3" json:"result_type,omitempty"` Count int32 `protobuf:"varint,9,opt,name=count,proto3" json:"count,omitempty"` Until string `protobuf:"bytes,10,opt,name=until,proto3" json:"until,omitempty"` IncludeEntities bool `protobuf:"varint,11,opt,name=include_entities,json=includeEntities,proto3" json:"include_entities,omitempty"` TweetMode string `protobuf:"bytes,12,opt,name=tweet_mode,json=tweetMode,proto3" json:"tweet_mode,omitempty"` Locale string `protobuf:"bytes,13,opt,name=locale,proto3" json:"locale,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Parameter) Descriptor ¶
func (*Parameter) GetGeocode ¶
func (*Parameter) GetIncludeEntities ¶
func (*Parameter) GetResultType ¶
func (*Parameter) GetSinceId ¶
func (*Parameter) GetTweetMode ¶
func (*Parameter) ProtoMessage ¶
func (*Parameter) ProtoMessage()
func (*Parameter) XXX_DiscardUnknown ¶
func (m *Parameter) XXX_DiscardUnknown()
func (*Parameter) XXX_Marshal ¶
func (*Parameter) XXX_Unmarshal ¶
type QueuedSeed ¶
type QueuedSeed struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Seq int32 `protobuf:"varint,2,opt,name=seq,proto3" json:"seq,omitempty"` ExecutionId string `protobuf:"bytes,3,opt,name=execution_id,json=executionId,proto3" json:"execution_id,omitempty"` SeedId string `protobuf:"bytes,4,opt,name=seed_id,json=seedId,proto3" json:"seed_id,omitempty"` Parameter *Parameter `protobuf:"bytes,5,opt,name=parameter,proto3" json:"parameter,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*QueuedSeed) Descriptor ¶
func (*QueuedSeed) Descriptor() ([]byte, []int)
func (*QueuedSeed) GetExecutionId ¶
func (m *QueuedSeed) GetExecutionId() string
func (*QueuedSeed) GetId ¶
func (m *QueuedSeed) GetId() string
func (*QueuedSeed) GetParameter ¶
func (m *QueuedSeed) GetParameter() *Parameter
func (*QueuedSeed) GetSeedId ¶
func (m *QueuedSeed) GetSeedId() string
func (*QueuedSeed) GetSeq ¶
func (m *QueuedSeed) GetSeq() int32
func (*QueuedSeed) ProtoMessage ¶
func (*QueuedSeed) ProtoMessage()
func (*QueuedSeed) Reset ¶
func (m *QueuedSeed) Reset()
func (*QueuedSeed) String ¶
func (m *QueuedSeed) String() string
func (*QueuedSeed) XXX_DiscardUnknown ¶
func (m *QueuedSeed) XXX_DiscardUnknown()
func (*QueuedSeed) XXX_Marshal ¶
func (m *QueuedSeed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueuedSeed) XXX_Merge ¶
func (m *QueuedSeed) XXX_Merge(src proto.Message)
func (*QueuedSeed) XXX_Size ¶
func (m *QueuedSeed) XXX_Size() int
func (*QueuedSeed) XXX_Unmarshal ¶
func (m *QueuedSeed) XXX_Unmarshal(b []byte) error
type RateLimit ¶
type RateLimit struct { Limit int32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"` Remaining int32 `protobuf:"varint,2,opt,name=remaining,proto3" json:"remaining,omitempty"` Reset_ *timestamp.Timestamp `protobuf:"bytes,3,opt,name=reset,proto3" json:"reset,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RateLimit) Descriptor ¶
func (*RateLimit) GetRemaining ¶
func (*RateLimit) ProtoMessage ¶
func (*RateLimit) ProtoMessage()
func (*RateLimit) XXX_DiscardUnknown ¶
func (m *RateLimit) XXX_DiscardUnknown()
func (*RateLimit) XXX_Marshal ¶
func (*RateLimit) XXX_Unmarshal ¶
type Seed ¶
type Seed struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Meta *Meta `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"` EntityId string `protobuf:"bytes,3,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"` JobId []string `protobuf:"bytes,4,rep,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` Disabled bool `protobuf:"varint,15,opt,name=disabled,proto3" json:"disabled,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Seed) Descriptor ¶
func (*Seed) GetDisabled ¶
func (*Seed) GetEntityId ¶
func (*Seed) ProtoMessage ¶
func (*Seed) ProtoMessage()
func (*Seed) XXX_DiscardUnknown ¶
func (m *Seed) XXX_DiscardUnknown()
func (*Seed) XXX_Unmarshal ¶
type WorkReply ¶
type WorkReply struct { QueuedSeed *QueuedSeed `protobuf:"bytes,1,opt,name=queued_seed,json=queuedSeed,proto3" json:"queued_seed,omitempty"` Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` MaxId string `protobuf:"bytes,3,opt,name=max_id,json=maxId,proto3" json:"max_id,omitempty"` SinceId string `protobuf:"bytes,4,opt,name=since_id,json=sinceId,proto3" json:"since_id,omitempty"` RateLimit *RateLimit `protobuf:"bytes,15,opt,name=rate_limit,json=rateLimit,proto3" json:"rate_limit,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*WorkReply) Descriptor ¶
func (*WorkReply) GetQueuedSeed ¶
func (m *WorkReply) GetQueuedSeed() *QueuedSeed
func (*WorkReply) GetRateLimit ¶
func (*WorkReply) GetSinceId ¶
func (*WorkReply) ProtoMessage ¶
func (*WorkReply) ProtoMessage()
func (*WorkReply) XXX_DiscardUnknown ¶
func (m *WorkReply) XXX_DiscardUnknown()
func (*WorkReply) XXX_Marshal ¶
func (*WorkReply) XXX_Unmarshal ¶
type WorkRequest ¶
type WorkRequest struct { QueuedSeed *QueuedSeed `protobuf:"bytes,1,opt,name=queued_seed,json=queuedSeed,proto3" json:"queued_seed,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*WorkRequest) Descriptor ¶
func (*WorkRequest) Descriptor() ([]byte, []int)
func (*WorkRequest) GetQueuedSeed ¶
func (m *WorkRequest) GetQueuedSeed() *QueuedSeed
func (*WorkRequest) ProtoMessage ¶
func (*WorkRequest) ProtoMessage()
func (*WorkRequest) Reset ¶
func (m *WorkRequest) Reset()
func (*WorkRequest) String ¶
func (m *WorkRequest) String() string
func (*WorkRequest) XXX_DiscardUnknown ¶
func (m *WorkRequest) XXX_DiscardUnknown()
func (*WorkRequest) XXX_Marshal ¶
func (m *WorkRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WorkRequest) XXX_Merge ¶
func (m *WorkRequest) XXX_Merge(src proto.Message)
func (*WorkRequest) XXX_Size ¶
func (m *WorkRequest) XXX_Size() int
func (*WorkRequest) XXX_Unmarshal ¶
func (m *WorkRequest) XXX_Unmarshal(b []byte) error
type WorkerClient ¶
type WorkerClient interface {
Do(ctx context.Context, in *WorkRequest, opts ...grpc.CallOption) (*WorkReply, error)
}
WorkerClient is the client API for Worker service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewWorkerClient ¶
func NewWorkerClient(cc *grpc.ClientConn) WorkerClient
type WorkerServer ¶
type WorkerServer interface {
Do(context.Context, *WorkRequest) (*WorkReply, error)
}
WorkerServer is the server API for Worker service.
Click to show internal directories.
Click to hide internal directories.