Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CrawlClient ¶
type CrawlClient struct {
// contains filtered or unexported fields
}
CrawlClient encapsulates a connection to the Crawler; the RPC methods may be called on it.
func New ¶
func New(serverAddr string, opts ...grpc.DialOption) *CrawlClient
New takes the gRPC connection data, connects to the server, and returns a struct that the client methods can be called on.
func (*CrawlClient) Close ¶
func (c *CrawlClient) Close()
Close exists to allow us to defer the close of the connection.
func (*CrawlClient) CrawlResult ¶
func (c *CrawlClient) CrawlResult(ctx context.Context, in *pb.URLRequest, opts ...grpc.CallOption) (pb.Crawl_CrawlResultClient, error)
CrawlResult allows us to check on the results for a crawl.
func (*CrawlClient) CrawlSite ¶
func (c *CrawlClient) CrawlSite(ctx context.Context, in *pb.URLRequest, opts ...grpc.CallOption) (*pb.URLState, error)
CrawlSite allows us to control the crawl on a specific site.
Click to show internal directories.
Click to hide internal directories.