Documentation ¶
Index ¶
- Variables
- func RegisterScrapperServer(s grpc.ServiceRegistrar, srv ScrapperServer)
- type Chapter
- type ChapterFlat
- type Comic
- type ComicFlat
- func (*ComicFlat) Descriptor() ([]byte, []int)deprecated
- func (x *ComicFlat) GetHost() string
- func (x *ComicFlat) GetId() int64
- func (x *ComicFlat) GetName() string
- func (*ComicFlat) ProtoMessage()
- func (x *ComicFlat) ProtoReflect() protoreflect.Message
- func (x *ComicFlat) Reset()
- func (x *ComicFlat) String() string
- type ImageProvider
- func (*ImageProvider) Descriptor() ([]byte, []int)deprecated
- func (x *ImageProvider) GetEpisode() int64
- func (x *ImageProvider) GetLink() string
- func (x *ImageProvider) GetProvider() string
- func (*ImageProvider) ProtoMessage()
- func (x *ImageProvider) ProtoReflect() protoreflect.Message
- func (x *ImageProvider) Reset()
- func (x *ImageProvider) String() string
- type ScrapPerChapterRequest
- func (*ScrapPerChapterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ScrapPerChapterRequest) GetId() string
- func (x *ScrapPerChapterRequest) GetTitle() string
- func (*ScrapPerChapterRequest) ProtoMessage()
- func (x *ScrapPerChapterRequest) ProtoReflect() protoreflect.Message
- func (x *ScrapPerChapterRequest) Reset()
- func (x *ScrapPerChapterRequest) String() string
- type ScrapPerChapterResponse
- func (*ScrapPerChapterResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ScrapPerChapterResponse) GetChapter() *Chapter
- func (*ScrapPerChapterResponse) ProtoMessage()
- func (x *ScrapPerChapterResponse) ProtoReflect() protoreflect.Message
- func (x *ScrapPerChapterResponse) Reset()
- func (x *ScrapPerChapterResponse) String() string
- type ScrapRequest
- func (*ScrapRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ScrapRequest) GetPage() int64
- func (x *ScrapRequest) GetQuantity() int64
- func (x *ScrapRequest) GetTitle() string
- func (*ScrapRequest) ProtoMessage()
- func (x *ScrapRequest) ProtoReflect() protoreflect.Message
- func (x *ScrapRequest) Reset()
- func (x *ScrapRequest) String() string
- type ScrapResponse
- type ScrapperClient
- type ScrapperServer
- type UnimplementedScrapperServer
- type UnsafeScrapperServer
Constants ¶
This section is empty.
Variables ¶
var File_orchestrator_proto_scrapper_proto protoreflect.FileDescriptor
var Scrapper_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.Scrapper", HandlerType: (*ScrapperServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Scrap", Handler: _Scrapper_Scrap_Handler, }, { MethodName: "ScrapPerChapter", Handler: _Scrapper_ScrapPerChapter_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "orchestrator/proto/scrapper.proto", }
Scrapper_ServiceDesc is the grpc.ServiceDesc for Scrapper service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterScrapperServer ¶
func RegisterScrapperServer(s grpc.ServiceRegistrar, srv ScrapperServer)
Types ¶
type Chapter ¶
type Chapter struct { ChapterFlat *ChapterFlat `protobuf:"bytes,1,opt,name=ChapterFlat,proto3" json:"ChapterFlat,omitempty"` Images []*ImageProvider `protobuf:"bytes,2,rep,name=Images,proto3" json:"Images,omitempty"` // contains filtered or unexported fields }
func (*Chapter) Descriptor
deprecated
func (*Chapter) GetChapterFlat ¶
func (x *Chapter) GetChapterFlat() *ChapterFlat
func (*Chapter) GetImages ¶
func (x *Chapter) GetImages() []*ImageProvider
func (*Chapter) ProtoMessage ¶
func (*Chapter) ProtoMessage()
func (*Chapter) ProtoReflect ¶
func (x *Chapter) ProtoReflect() protoreflect.Message
type ChapterFlat ¶
type ChapterFlat struct { Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"` // contains filtered or unexported fields }
func (*ChapterFlat) Descriptor
deprecated
func (*ChapterFlat) Descriptor() ([]byte, []int)
Deprecated: Use ChapterFlat.ProtoReflect.Descriptor instead.
func (*ChapterFlat) GetId ¶
func (x *ChapterFlat) GetId() string
func (*ChapterFlat) ProtoMessage ¶
func (*ChapterFlat) ProtoMessage()
func (*ChapterFlat) ProtoReflect ¶
func (x *ChapterFlat) ProtoReflect() protoreflect.Message
func (*ChapterFlat) Reset ¶
func (x *ChapterFlat) Reset()
func (*ChapterFlat) String ¶
func (x *ChapterFlat) String() string
type Comic ¶
type Comic struct { ComicFlat *ComicFlat `protobuf:"bytes,1,opt,name=ComicFlat,proto3" json:"ComicFlat,omitempty"` Chapters []*Chapter `protobuf:"bytes,2,rep,name=Chapters,proto3" json:"Chapters,omitempty"` // contains filtered or unexported fields }
func (*Comic) Descriptor
deprecated
func (*Comic) GetChapters ¶
func (*Comic) GetComicFlat ¶
func (*Comic) ProtoMessage ¶
func (*Comic) ProtoMessage()
func (*Comic) ProtoReflect ¶
func (x *Comic) ProtoReflect() protoreflect.Message
type ComicFlat ¶
type ComicFlat struct { Id int64 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` Host string `protobuf:"bytes,3,opt,name=Host,proto3" json:"Host,omitempty"` // contains filtered or unexported fields }
func (*ComicFlat) Descriptor
deprecated
func (*ComicFlat) ProtoMessage ¶
func (*ComicFlat) ProtoMessage()
func (*ComicFlat) ProtoReflect ¶
func (x *ComicFlat) ProtoReflect() protoreflect.Message
type ImageProvider ¶
type ImageProvider struct { Episode int64 `protobuf:"varint,1,opt,name=Episode,proto3" json:"Episode,omitempty"` Provider string `protobuf:"bytes,2,opt,name=Provider,proto3" json:"Provider,omitempty"` Link string `protobuf:"bytes,3,opt,name=Link,proto3" json:"Link,omitempty"` // contains filtered or unexported fields }
func (*ImageProvider) Descriptor
deprecated
func (*ImageProvider) Descriptor() ([]byte, []int)
Deprecated: Use ImageProvider.ProtoReflect.Descriptor instead.
func (*ImageProvider) GetEpisode ¶
func (x *ImageProvider) GetEpisode() int64
func (*ImageProvider) GetLink ¶
func (x *ImageProvider) GetLink() string
func (*ImageProvider) GetProvider ¶
func (x *ImageProvider) GetProvider() string
func (*ImageProvider) ProtoMessage ¶
func (*ImageProvider) ProtoMessage()
func (*ImageProvider) ProtoReflect ¶
func (x *ImageProvider) ProtoReflect() protoreflect.Message
func (*ImageProvider) Reset ¶
func (x *ImageProvider) Reset()
func (*ImageProvider) String ¶
func (x *ImageProvider) String() string
type ScrapPerChapterRequest ¶
type ScrapPerChapterRequest struct { Title string `protobuf:"bytes,1,opt,name=Title,proto3" json:"Title,omitempty"` Id string `protobuf:"bytes,2,opt,name=Id,proto3" json:"Id,omitempty"` // contains filtered or unexported fields }
func (*ScrapPerChapterRequest) Descriptor
deprecated
func (*ScrapPerChapterRequest) Descriptor() ([]byte, []int)
Deprecated: Use ScrapPerChapterRequest.ProtoReflect.Descriptor instead.
func (*ScrapPerChapterRequest) GetId ¶
func (x *ScrapPerChapterRequest) GetId() string
func (*ScrapPerChapterRequest) GetTitle ¶
func (x *ScrapPerChapterRequest) GetTitle() string
func (*ScrapPerChapterRequest) ProtoMessage ¶
func (*ScrapPerChapterRequest) ProtoMessage()
func (*ScrapPerChapterRequest) ProtoReflect ¶
func (x *ScrapPerChapterRequest) ProtoReflect() protoreflect.Message
func (*ScrapPerChapterRequest) Reset ¶
func (x *ScrapPerChapterRequest) Reset()
func (*ScrapPerChapterRequest) String ¶
func (x *ScrapPerChapterRequest) String() string
type ScrapPerChapterResponse ¶
type ScrapPerChapterResponse struct { Chapter *Chapter `protobuf:"bytes,1,opt,name=Chapter,proto3" json:"Chapter,omitempty"` // contains filtered or unexported fields }
func (*ScrapPerChapterResponse) Descriptor
deprecated
func (*ScrapPerChapterResponse) Descriptor() ([]byte, []int)
Deprecated: Use ScrapPerChapterResponse.ProtoReflect.Descriptor instead.
func (*ScrapPerChapterResponse) GetChapter ¶
func (x *ScrapPerChapterResponse) GetChapter() *Chapter
func (*ScrapPerChapterResponse) ProtoMessage ¶
func (*ScrapPerChapterResponse) ProtoMessage()
func (*ScrapPerChapterResponse) ProtoReflect ¶
func (x *ScrapPerChapterResponse) ProtoReflect() protoreflect.Message
func (*ScrapPerChapterResponse) Reset ¶
func (x *ScrapPerChapterResponse) Reset()
func (*ScrapPerChapterResponse) String ¶
func (x *ScrapPerChapterResponse) String() string
type ScrapRequest ¶
type ScrapRequest struct { Title string `protobuf:"bytes,1,opt,name=Title,proto3" json:"Title,omitempty"` Page int64 `protobuf:"varint,2,opt,name=Page,proto3" json:"Page,omitempty"` Quantity int64 `protobuf:"varint,3,opt,name=Quantity,proto3" json:"Quantity,omitempty"` // contains filtered or unexported fields }
func (*ScrapRequest) Descriptor
deprecated
func (*ScrapRequest) Descriptor() ([]byte, []int)
Deprecated: Use ScrapRequest.ProtoReflect.Descriptor instead.
func (*ScrapRequest) GetPage ¶
func (x *ScrapRequest) GetPage() int64
func (*ScrapRequest) GetQuantity ¶
func (x *ScrapRequest) GetQuantity() int64
func (*ScrapRequest) GetTitle ¶
func (x *ScrapRequest) GetTitle() string
func (*ScrapRequest) ProtoMessage ¶
func (*ScrapRequest) ProtoMessage()
func (*ScrapRequest) ProtoReflect ¶
func (x *ScrapRequest) ProtoReflect() protoreflect.Message
func (*ScrapRequest) Reset ¶
func (x *ScrapRequest) Reset()
func (*ScrapRequest) String ¶
func (x *ScrapRequest) String() string
type ScrapResponse ¶
type ScrapResponse struct { Comic *Comic `protobuf:"bytes,1,opt,name=Comic,proto3" json:"Comic,omitempty"` // contains filtered or unexported fields }
func (*ScrapResponse) Descriptor
deprecated
func (*ScrapResponse) Descriptor() ([]byte, []int)
Deprecated: Use ScrapResponse.ProtoReflect.Descriptor instead.
func (*ScrapResponse) GetComic ¶
func (x *ScrapResponse) GetComic() *Comic
func (*ScrapResponse) ProtoMessage ¶
func (*ScrapResponse) ProtoMessage()
func (*ScrapResponse) ProtoReflect ¶
func (x *ScrapResponse) ProtoReflect() protoreflect.Message
func (*ScrapResponse) Reset ¶
func (x *ScrapResponse) Reset()
func (*ScrapResponse) String ¶
func (x *ScrapResponse) String() string
type ScrapperClient ¶
type ScrapperClient interface { Scrap(ctx context.Context, in *ScrapRequest, opts ...grpc.CallOption) (*ScrapResponse, error) ScrapPerChapter(ctx context.Context, in *ScrapPerChapterRequest, opts ...grpc.CallOption) (*ScrapPerChapterResponse, error) }
ScrapperClient is the client API for Scrapper 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 NewScrapperClient ¶
func NewScrapperClient(cc grpc.ClientConnInterface) ScrapperClient
type ScrapperServer ¶
type ScrapperServer interface { Scrap(context.Context, *ScrapRequest) (*ScrapResponse, error) ScrapPerChapter(context.Context, *ScrapPerChapterRequest) (*ScrapPerChapterResponse, error) }
ScrapperServer is the server API for Scrapper service. All implementations should embed UnimplementedScrapperServer for forward compatibility
type UnimplementedScrapperServer ¶
type UnimplementedScrapperServer struct { }
UnimplementedScrapperServer should be embedded to have forward compatible implementations.
func (UnimplementedScrapperServer) Scrap ¶
func (UnimplementedScrapperServer) Scrap(context.Context, *ScrapRequest) (*ScrapResponse, error)
func (UnimplementedScrapperServer) ScrapPerChapter ¶
func (UnimplementedScrapperServer) ScrapPerChapter(context.Context, *ScrapPerChapterRequest) (*ScrapPerChapterResponse, error)
type UnsafeScrapperServer ¶
type UnsafeScrapperServer interface {
// contains filtered or unexported methods
}
UnsafeScrapperServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ScrapperServer will result in compilation errors.