Documentation ¶
Index ¶
- Variables
- func RegisterWorkerServer(s grpc.ServiceRegistrar, srv WorkerServer)
- type CompleteLinkCheckRequest
- func (*CompleteLinkCheckRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CompleteLinkCheckRequest) GetExists() bool
- func (x *CompleteLinkCheckRequest) GetGroupSlug() string
- func (x *CompleteLinkCheckRequest) GetLinkId() int64
- func (x *CompleteLinkCheckRequest) GetLinkText() string
- func (x *CompleteLinkCheckRequest) GetLinkType() string
- func (x *CompleteLinkCheckRequest) GetNofollow() bool
- func (*CompleteLinkCheckRequest) ProtoMessage()
- func (x *CompleteLinkCheckRequest) ProtoReflect() protoreflect.Message
- func (x *CompleteLinkCheckRequest) Reset()
- func (x *CompleteLinkCheckRequest) String() string
- type DispatchPagesRequest
- func (*DispatchPagesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DispatchPagesRequest) GetGroupSlug() string
- func (x *DispatchPagesRequest) GetIds() []string
- func (x *DispatchPagesRequest) GetProjectId() int64
- func (x *DispatchPagesRequest) GetTaskId() int64
- func (*DispatchPagesRequest) ProtoMessage()
- func (x *DispatchPagesRequest) ProtoReflect() protoreflect.Message
- func (x *DispatchPagesRequest) Reset()
- func (x *DispatchPagesRequest) String() string
- type DispatchRequest
- func (*DispatchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DispatchRequest) GetForce() bool
- func (x *DispatchRequest) GetGroupSlug() string
- func (x *DispatchRequest) GetProjectId() int64
- func (x *DispatchRequest) GetTaskId() int64
- func (*DispatchRequest) ProtoMessage()
- func (x *DispatchRequest) ProtoReflect() protoreflect.Message
- func (x *DispatchRequest) Reset()
- func (x *DispatchRequest) String() string
- type Page
- func (*Page) Descriptor() ([]byte, []int)deprecated
- func (x *Page) GetGroupSlug() string
- func (x *Page) GetId() string
- func (x *Page) GetProjectId() int64
- func (x *Page) GetScrapeId() string
- func (x *Page) GetSearchTerm() string
- func (x *Page) GetTaskId() int64
- func (x *Page) GetUrl() string
- func (*Page) ProtoMessage()
- func (x *Page) ProtoReflect() protoreflect.Message
- func (x *Page) Reset()
- func (x *Page) String() string
- type StopRequest
- func (*StopRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StopRequest) GetGroupSlug() string
- func (x *StopRequest) GetProjectId() int64
- func (x *StopRequest) GetTaskId() int64
- func (*StopRequest) ProtoMessage()
- func (x *StopRequest) ProtoReflect() protoreflect.Message
- func (x *StopRequest) Reset()
- func (x *StopRequest) String() string
- type UnimplementedWorkerServer
- func (UnimplementedWorkerServer) CompleteLinkCheck(context.Context, *CompleteLinkCheckRequest) (*emptypb.Empty, error)
- func (UnimplementedWorkerServer) DispatchPages(context.Context, *DispatchPagesRequest) (*emptypb.Empty, error)
- func (UnimplementedWorkerServer) DispatchTask(context.Context, *DispatchRequest) (*emptypb.Empty, error)
- func (UnimplementedWorkerServer) StopTask(context.Context, *StopRequest) (*emptypb.Empty, error)
- type UnsafeWorkerServer
- type WorkerClient
- type WorkerServer
Constants ¶
This section is empty.
Variables ¶
var File_worker_worker_proto protoreflect.FileDescriptor
var Worker_ServiceDesc = grpc.ServiceDesc{ ServiceName: "worker.Worker", HandlerType: (*WorkerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "DispatchTask", Handler: _Worker_DispatchTask_Handler, }, { MethodName: "DispatchPages", Handler: _Worker_DispatchPages_Handler, }, { MethodName: "StopTask", Handler: _Worker_StopTask_Handler, }, { MethodName: "CompleteLinkCheck", Handler: _Worker_CompleteLinkCheck_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "worker/worker.proto", }
Worker_ServiceDesc is the grpc.ServiceDesc for Worker service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterWorkerServer ¶
func RegisterWorkerServer(s grpc.ServiceRegistrar, srv WorkerServer)
Types ¶
type CompleteLinkCheckRequest ¶
type CompleteLinkCheckRequest struct { GroupSlug string `protobuf:"bytes,1,opt,name=group_slug,json=groupSlug,proto3" json:"group_slug,omitempty"` LinkId int64 `protobuf:"varint,2,opt,name=link_id,json=linkId,proto3" json:"link_id,omitempty"` Exists bool `protobuf:"varint,3,opt,name=exists,proto3" json:"exists,omitempty"` LinkType string `protobuf:"bytes,4,opt,name=link_type,json=linkType,proto3" json:"link_type,omitempty"` LinkText string `protobuf:"bytes,5,opt,name=link_text,json=linkText,proto3" json:"link_text,omitempty"` Nofollow bool `protobuf:"varint,6,opt,name=nofollow,proto3" json:"nofollow,omitempty"` // contains filtered or unexported fields }
func (*CompleteLinkCheckRequest) Descriptor
deprecated
func (*CompleteLinkCheckRequest) Descriptor() ([]byte, []int)
Deprecated: Use CompleteLinkCheckRequest.ProtoReflect.Descriptor instead.
func (*CompleteLinkCheckRequest) GetExists ¶
func (x *CompleteLinkCheckRequest) GetExists() bool
func (*CompleteLinkCheckRequest) GetGroupSlug ¶
func (x *CompleteLinkCheckRequest) GetGroupSlug() string
func (*CompleteLinkCheckRequest) GetLinkId ¶ added in v0.0.17
func (x *CompleteLinkCheckRequest) GetLinkId() int64
func (*CompleteLinkCheckRequest) GetLinkText ¶
func (x *CompleteLinkCheckRequest) GetLinkText() string
func (*CompleteLinkCheckRequest) GetLinkType ¶ added in v0.0.17
func (x *CompleteLinkCheckRequest) GetLinkType() string
func (*CompleteLinkCheckRequest) GetNofollow ¶
func (x *CompleteLinkCheckRequest) GetNofollow() bool
func (*CompleteLinkCheckRequest) ProtoMessage ¶
func (*CompleteLinkCheckRequest) ProtoMessage()
func (*CompleteLinkCheckRequest) ProtoReflect ¶
func (x *CompleteLinkCheckRequest) ProtoReflect() protoreflect.Message
func (*CompleteLinkCheckRequest) Reset ¶
func (x *CompleteLinkCheckRequest) Reset()
func (*CompleteLinkCheckRequest) String ¶
func (x *CompleteLinkCheckRequest) String() string
type DispatchPagesRequest ¶ added in v0.2.4
type DispatchPagesRequest struct { GroupSlug string `protobuf:"bytes,1,opt,name=group_slug,json=groupSlug,proto3" json:"group_slug,omitempty"` ProjectId int64 `protobuf:"varint,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` TaskId int64 `protobuf:"varint,3,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` Ids []string `protobuf:"bytes,4,rep,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
func (*DispatchPagesRequest) Descriptor
deprecated
added in
v0.2.4
func (*DispatchPagesRequest) Descriptor() ([]byte, []int)
Deprecated: Use DispatchPagesRequest.ProtoReflect.Descriptor instead.
func (*DispatchPagesRequest) GetGroupSlug ¶ added in v0.2.4
func (x *DispatchPagesRequest) GetGroupSlug() string
func (*DispatchPagesRequest) GetIds ¶ added in v0.2.4
func (x *DispatchPagesRequest) GetIds() []string
func (*DispatchPagesRequest) GetProjectId ¶ added in v0.2.4
func (x *DispatchPagesRequest) GetProjectId() int64
func (*DispatchPagesRequest) GetTaskId ¶ added in v0.2.4
func (x *DispatchPagesRequest) GetTaskId() int64
func (*DispatchPagesRequest) ProtoMessage ¶ added in v0.2.4
func (*DispatchPagesRequest) ProtoMessage()
func (*DispatchPagesRequest) ProtoReflect ¶ added in v0.2.4
func (x *DispatchPagesRequest) ProtoReflect() protoreflect.Message
func (*DispatchPagesRequest) Reset ¶ added in v0.2.4
func (x *DispatchPagesRequest) Reset()
func (*DispatchPagesRequest) String ¶ added in v0.2.4
func (x *DispatchPagesRequest) String() string
type DispatchRequest ¶
type DispatchRequest struct { GroupSlug string `protobuf:"bytes,1,opt,name=group_slug,json=groupSlug,proto3" json:"group_slug,omitempty"` ProjectId int64 `protobuf:"varint,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` TaskId int64 `protobuf:"varint,3,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` Force bool `protobuf:"varint,4,opt,name=force,proto3" json:"force,omitempty"` // contains filtered or unexported fields }
func (*DispatchRequest) Descriptor
deprecated
func (*DispatchRequest) Descriptor() ([]byte, []int)
Deprecated: Use DispatchRequest.ProtoReflect.Descriptor instead.
func (*DispatchRequest) GetForce ¶ added in v0.2.4
func (x *DispatchRequest) GetForce() bool
func (*DispatchRequest) GetGroupSlug ¶
func (x *DispatchRequest) GetGroupSlug() string
func (*DispatchRequest) GetProjectId ¶
func (x *DispatchRequest) GetProjectId() int64
func (*DispatchRequest) GetTaskId ¶
func (x *DispatchRequest) GetTaskId() int64
func (*DispatchRequest) ProtoMessage ¶
func (*DispatchRequest) ProtoMessage()
func (*DispatchRequest) ProtoReflect ¶
func (x *DispatchRequest) ProtoReflect() protoreflect.Message
func (*DispatchRequest) Reset ¶
func (x *DispatchRequest) Reset()
func (*DispatchRequest) String ¶
func (x *DispatchRequest) String() string
type Page ¶
type Page struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` ScrapeId string `protobuf:"bytes,2,opt,name=scrape_id,json=scrapeId,proto3" json:"scrape_id,omitempty"` Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` GroupSlug string `protobuf:"bytes,4,opt,name=group_slug,json=groupSlug,proto3" json:"group_slug,omitempty"` ProjectId int64 `protobuf:"varint,5,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` TaskId int64 `protobuf:"varint,6,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` SearchTerm string `protobuf:"bytes,7,opt,name=search_term,json=searchTerm,proto3" json:"search_term,omitempty"` // contains filtered or unexported fields }
func (*Page) Descriptor
deprecated
func (*Page) GetGroupSlug ¶
func (*Page) GetProjectId ¶
func (*Page) GetScrapeId ¶
func (*Page) GetSearchTerm ¶
func (*Page) ProtoMessage ¶
func (*Page) ProtoMessage()
func (*Page) ProtoReflect ¶
func (x *Page) ProtoReflect() protoreflect.Message
type StopRequest ¶ added in v0.2.3
type StopRequest struct { GroupSlug string `protobuf:"bytes,1,opt,name=group_slug,json=groupSlug,proto3" json:"group_slug,omitempty"` ProjectId int64 `protobuf:"varint,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` TaskId int64 `protobuf:"varint,3,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` // contains filtered or unexported fields }
func (*StopRequest) Descriptor
deprecated
added in
v0.2.3
func (*StopRequest) Descriptor() ([]byte, []int)
Deprecated: Use StopRequest.ProtoReflect.Descriptor instead.
func (*StopRequest) GetGroupSlug ¶ added in v0.2.3
func (x *StopRequest) GetGroupSlug() string
func (*StopRequest) GetProjectId ¶ added in v0.2.3
func (x *StopRequest) GetProjectId() int64
func (*StopRequest) GetTaskId ¶ added in v0.2.3
func (x *StopRequest) GetTaskId() int64
func (*StopRequest) ProtoMessage ¶ added in v0.2.3
func (*StopRequest) ProtoMessage()
func (*StopRequest) ProtoReflect ¶ added in v0.2.3
func (x *StopRequest) ProtoReflect() protoreflect.Message
func (*StopRequest) Reset ¶ added in v0.2.3
func (x *StopRequest) Reset()
func (*StopRequest) String ¶ added in v0.2.3
func (x *StopRequest) String() string
type UnimplementedWorkerServer ¶
type UnimplementedWorkerServer struct { }
UnimplementedWorkerServer must be embedded to have forward compatible implementations.
func (UnimplementedWorkerServer) CompleteLinkCheck ¶
func (UnimplementedWorkerServer) CompleteLinkCheck(context.Context, *CompleteLinkCheckRequest) (*emptypb.Empty, error)
func (UnimplementedWorkerServer) DispatchPages ¶ added in v0.2.4
func (UnimplementedWorkerServer) DispatchPages(context.Context, *DispatchPagesRequest) (*emptypb.Empty, error)
func (UnimplementedWorkerServer) DispatchTask ¶
func (UnimplementedWorkerServer) DispatchTask(context.Context, *DispatchRequest) (*emptypb.Empty, error)
func (UnimplementedWorkerServer) StopTask ¶ added in v0.2.3
func (UnimplementedWorkerServer) StopTask(context.Context, *StopRequest) (*emptypb.Empty, error)
type UnsafeWorkerServer ¶
type UnsafeWorkerServer interface {
// contains filtered or unexported methods
}
UnsafeWorkerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WorkerServer will result in compilation errors.
type WorkerClient ¶
type WorkerClient interface { DispatchTask(ctx context.Context, in *DispatchRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) DispatchPages(ctx context.Context, in *DispatchPagesRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // rpc CompleteTask(CompleteTaskRequest) returns(google.protobuf.Empty) {} StopTask(ctx context.Context, in *StopRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) CompleteLinkCheck(ctx context.Context, in *CompleteLinkCheckRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
WorkerClient is the client API for Worker service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewWorkerClient ¶
func NewWorkerClient(cc grpc.ClientConnInterface) WorkerClient
type WorkerServer ¶
type WorkerServer interface { DispatchTask(context.Context, *DispatchRequest) (*emptypb.Empty, error) DispatchPages(context.Context, *DispatchPagesRequest) (*emptypb.Empty, error) // rpc CompleteTask(CompleteTaskRequest) returns(google.protobuf.Empty) {} StopTask(context.Context, *StopRequest) (*emptypb.Empty, error) CompleteLinkCheck(context.Context, *CompleteLinkCheckRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
WorkerServer is the server API for Worker service. All implementations must embed UnimplementedWorkerServer for forward compatibility