mirror of
https://bitbucket.org/skobkin/point-tools-go.git
synced 2024-11-24 13:53:10 +00:00
Humble doc comments.
This commit is contained in:
parent
fac428f790
commit
6e682828ee
|
@ -1,8 +1,9 @@
|
|||
// Package point_tools implements simple Point Tools API wrapper for sending some service requests.
|
||||
package point_tools
|
||||
|
||||
import (
|
||||
"bitbucket.org/skobkin/point-api-go"
|
||||
"bitbucket.org/skobkin/dumb-http-go"
|
||||
"bitbucket.org/skobkin/point-api-go"
|
||||
"encoding/json"
|
||||
"log"
|
||||
"net/http"
|
||||
|
@ -15,6 +16,7 @@ type PointToolsClient struct {
|
|||
token string
|
||||
}
|
||||
|
||||
// New creates new Point Tools API client instance and initialize it to use provided URL and token
|
||||
func New(apiUrl, token string) PointToolsClient {
|
||||
return PointToolsClient{
|
||||
simple_http.Client{http.Client{}},
|
||||
|
@ -34,6 +36,7 @@ func GetPageJSON(page point.Page) (string, error) {
|
|||
return string(b[:]), nil
|
||||
}
|
||||
|
||||
// SendPage sends page to Point Tools crawler API gate for processing
|
||||
func (c *PointToolsClient) SendPage(page point.Page) (ReceiveAllPageResponse, error) {
|
||||
var response ReceiveAllPageResponse
|
||||
|
||||
|
|
Loading…
Reference in a new issue