Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GRPCClient ¶
type GRPCClient struct {
// contains filtered or unexported fields
}
func (*GRPCClient) ScrapPerChapter ¶
func (m *GRPCClient) ScrapPerChapter(Title, Id string) model.Chapter
type GRPCPlugin ¶
type GRPCPlugin struct { plugin.Plugin Impl Scrapper }
func (*GRPCPlugin) GRPCClient ¶
func (p *GRPCPlugin) GRPCClient(ctx context.Context, broker *plugin.GRPCBroker, c *grpc.ClientConn) (interface{}, error)
func (*GRPCPlugin) GRPCServer ¶
func (p *GRPCPlugin) GRPCServer(broker *plugin.GRPCBroker, s *grpc.Server) error
type GRPCServer ¶
type GRPCServer struct { // This is the real implementation Impl Scrapper }
Here is the gRPC server that GRPCClient talks to.
func (*GRPCServer) Scrap ¶
func (m *GRPCServer) Scrap( ctx context.Context, req *proto.ScrapRequest) (*proto.ScrapResponse, error)
func (*GRPCServer) ScrapPerChapter ¶
func (m *GRPCServer) ScrapPerChapter( ctx context.Context, req *proto.ScrapPerChapterRequest) (*proto.ScrapPerChapterResponse, error)
type RPCServer ¶
type RPCServer struct { // This is the real implementation Impl Scrapper }
type ScrapperPlugin ¶
type ScrapperPlugin struct {
Impl Scrapper
}
func (*ScrapperPlugin) Client ¶
func (*ScrapperPlugin) Client(b *plugin.MuxBroker, c *rpc.Client) (interface{}, error)
func (*ScrapperPlugin) Server ¶
func (p *ScrapperPlugin) Server(*plugin.MuxBroker) (interface{}, error)
Click to show internal directories.
Click to hide internal directories.