Documentation ¶
Index ¶
- Variables
- func DefaultHttpClient(timeout time.Duration, tls *tls.Config) *http.Client
- func TlsConfigAllowingInsecure() *tls.Config
- type Bookmark
- type Checker
- type Client
- type FailureInfo
- type Format
- type JSONReporter
- type LookupFailure
- type PinboardBoolean
- type PinboardTags
- type Reporter
- type SimpleFailureReporter
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultEndpoint *url.URL
View Source
var DefaultNumberOfWorkers = 10
View Source
var DefaultRequestRate = 10
View Source
var DefaultTimeout = 10 * time.Second
Functions ¶
func DefaultHttpClient ¶
Types ¶
type Bookmark ¶
type Bookmark struct { Href string `json:"href"` Description string `json:"description,omitempty"` Extended string `json:"extended,omitempty"` Meta string `json:"meta,omitempty"` Hash string `json:"hash,omitempty"` Time time.Time `json:"time,omitempty"` ToRead PinboardBoolean `json:"toread"` Tags PinboardTags `json:"tags"` FailureInfo FailureInfo `json:"failure,omitempty"` }
type Client ¶
func (*Client) DeleteBookmark ¶
func (*Client) DownloadBookmarks ¶
func (client *Client) DownloadBookmarks() (io.ReadCloser, error)
func (*Client) GetAllBookmarks ¶
type FailureInfo ¶
type JSONReporter ¶
type JSONReporter struct {
// contains filtered or unexported fields
}
func NewJSONReporter ¶
func NewJSONReporter(verbose bool, writers ...io.Writer) *JSONReporter
type LookupFailure ¶
type PinboardBoolean ¶
type PinboardBoolean bool
func (*PinboardBoolean) MarshalJSON ¶
func (p *PinboardBoolean) MarshalJSON() ([]byte, error)
func (*PinboardBoolean) UnmarshalJSON ¶
func (p *PinboardBoolean) UnmarshalJSON(data []byte) error
type PinboardTags ¶
type PinboardTags []string
func (*PinboardTags) MarshalJSON ¶
func (p *PinboardTags) MarshalJSON() ([]byte, error)
func (*PinboardTags) UnmarshalJSON ¶
func (p *PinboardTags) UnmarshalJSON(data []byte) error
type SimpleFailureReporter ¶
type SimpleFailureReporter struct {
// contains filtered or unexported fields
}
func NewSimpleFailureReporter ¶
func NewSimpleFailureReporter(verbose bool, colorize bool, writers ...io.Writer) SimpleFailureReporter
Click to show internal directories.
Click to hide internal directories.