Documentation ¶
Index ¶
- Variables
- func GetAuthToken(username, password string) (string, error)
- func ValidateURL(u string) error
- type AddPostOptions
- func (ap *AddPostOptions) Description(s string) *AddPostOptions
- func (ap *AddPostOptions) Do() error
- func (ap *AddPostOptions) Replace(b bool) *AddPostOptions
- func (ap *AddPostOptions) Shared(b bool) *AddPostOptions
- func (ap *AddPostOptions) Tag(s string) *AddPostOptions
- func (ap *AddPostOptions) Time(t *time.Time) *AddPostOptions
- func (ap *AddPostOptions) Title(t string) *AddPostOptions
- func (ap *AddPostOptions) Toread(b bool) *AddPostOptions
- func (ap *AddPostOptions) URL(u string) *AddPostOptions
- type FilterFunc
- type GetAllPostsOptions
- func (gp *GetAllPostsOptions) Do() ([]*Post, error)
- func (gp *GetAllPostsOptions) From(t *time.Time) *GetAllPostsOptions
- func (gp *GetAllPostsOptions) Meta(b bool) *GetAllPostsOptions
- func (gp *GetAllPostsOptions) Results(i int) *GetAllPostsOptions
- func (gp *GetAllPostsOptions) Start(i int) *GetAllPostsOptions
- func (gp *GetAllPostsOptions) Tag(s string) *GetAllPostsOptions
- func (gp *GetAllPostsOptions) To(t *time.Time) *GetAllPostsOptions
- type GetPostsOptions
- type GetRecentPostsOptions
- type Pinboard
- func (p *Pinboard) AddPost(url, title string) error
- func (p *Pinboard) AddPostWith(url, title string) *AddPostOptions
- func (p *Pinboard) DeletePost(url string) error
- func (p *Pinboard) DeleteTag(tag string) error
- func (p *Pinboard) GetAllPosts() ([]*Post, error)
- func (p *Pinboard) GetAllPostsWith() *GetAllPostsOptions
- func (p *Pinboard) GetAllTags() (TagCloud, error)
- func (p *Pinboard) GetPost(url string) (*Post, error)
- func (p *Pinboard) GetPosts() ([]*Post, error)
- func (p *Pinboard) GetPostsAtDates() ([]PostsAtDates, error)
- func (p *Pinboard) GetPostsWith() *GetPostsOptions
- func (p *Pinboard) GetRecentPosts() ([]*Post, error)
- func (p *Pinboard) GetRecentPostsWith() *GetRecentPostsOptions
- func (p *Pinboard) GetSuggestedTags(url string) (popular, recommended []string, err error)
- func (p *Pinboard) GetUpdatedTime() (*time.Time, error)
- func (p *Pinboard) GetUserSecret() (string, error)
- func (p *Pinboard) RenameTag(o, n string) error
- type PinboardAPIError
- type PinboardError
- type Post
- type PostsAtDates
- type TagCloud
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrTooManyRequests = PinboardError("429: Too Many Requests") ErrForbidden = PinboardError("403: Forbidden") )
Functions ¶
func GetAuthToken ¶
func ValidateURL ¶
Types ¶
type AddPostOptions ¶
type AddPostOptions struct {
// contains filtered or unexported fields
}
func (*AddPostOptions) Description ¶
func (ap *AddPostOptions) Description(s string) *AddPostOptions
func (*AddPostOptions) Do ¶
func (ap *AddPostOptions) Do() error
func (*AddPostOptions) Replace ¶
func (ap *AddPostOptions) Replace(b bool) *AddPostOptions
func (*AddPostOptions) Shared ¶
func (ap *AddPostOptions) Shared(b bool) *AddPostOptions
func (*AddPostOptions) Tag ¶
func (ap *AddPostOptions) Tag(s string) *AddPostOptions
func (*AddPostOptions) Time ¶
func (ap *AddPostOptions) Time(t *time.Time) *AddPostOptions
func (*AddPostOptions) Title ¶
func (ap *AddPostOptions) Title(t string) *AddPostOptions
func (*AddPostOptions) Toread ¶
func (ap *AddPostOptions) Toread(b bool) *AddPostOptions
func (*AddPostOptions) URL ¶
func (ap *AddPostOptions) URL(u string) *AddPostOptions
type FilterFunc ¶
type GetAllPostsOptions ¶
type GetAllPostsOptions struct {
// contains filtered or unexported fields
}
func (*GetAllPostsOptions) Do ¶
func (gp *GetAllPostsOptions) Do() ([]*Post, error)
func (*GetAllPostsOptions) From ¶
func (gp *GetAllPostsOptions) From(t *time.Time) *GetAllPostsOptions
func (*GetAllPostsOptions) Meta ¶
func (gp *GetAllPostsOptions) Meta(b bool) *GetAllPostsOptions
func (*GetAllPostsOptions) Results ¶
func (gp *GetAllPostsOptions) Results(i int) *GetAllPostsOptions
func (*GetAllPostsOptions) Start ¶
func (gp *GetAllPostsOptions) Start(i int) *GetAllPostsOptions
func (*GetAllPostsOptions) Tag ¶
func (gp *GetAllPostsOptions) Tag(s string) *GetAllPostsOptions
func (*GetAllPostsOptions) To ¶
func (gp *GetAllPostsOptions) To(t *time.Time) *GetAllPostsOptions
type GetPostsOptions ¶
type GetPostsOptions struct {
// contains filtered or unexported fields
}
func (*GetPostsOptions) Do ¶
func (gp *GetPostsOptions) Do() ([]*Post, error)
func (*GetPostsOptions) Meta ¶
func (gp *GetPostsOptions) Meta(b bool) *GetPostsOptions
func (*GetPostsOptions) Tags ¶
func (gp *GetPostsOptions) Tags(s string) *GetPostsOptions
func (*GetPostsOptions) Time ¶
func (gp *GetPostsOptions) Time(t *time.Time) *GetPostsOptions
func (*GetPostsOptions) URL ¶
func (gp *GetPostsOptions) URL(u string) *GetPostsOptions
type GetRecentPostsOptions ¶
type GetRecentPostsOptions struct {
// contains filtered or unexported fields
}
func (*GetRecentPostsOptions) Count ¶
func (rp *GetRecentPostsOptions) Count(i int) *GetRecentPostsOptions
func (*GetRecentPostsOptions) Do ¶
func (rp *GetRecentPostsOptions) Do() ([]*Post, error)
func (*GetRecentPostsOptions) Tags ¶
func (rp *GetRecentPostsOptions) Tags(s string) *GetRecentPostsOptions
type Pinboard ¶
type Pinboard struct {
// contains filtered or unexported fields
}
func NewWithPassword ¶
func (*Pinboard) AddPostWith ¶
func (p *Pinboard) AddPostWith(url, title string) *AddPostOptions
func (*Pinboard) DeletePost ¶
func (*Pinboard) GetAllPosts ¶
func (*Pinboard) GetAllPostsWith ¶
func (p *Pinboard) GetAllPostsWith() *GetAllPostsOptions
func (*Pinboard) GetAllTags ¶
func (*Pinboard) GetPostsAtDates ¶
func (p *Pinboard) GetPostsAtDates() ([]PostsAtDates, error)
func (*Pinboard) GetPostsWith ¶
func (p *Pinboard) GetPostsWith() *GetPostsOptions
func (*Pinboard) GetRecentPosts ¶
func (*Pinboard) GetRecentPostsWith ¶
func (p *Pinboard) GetRecentPostsWith() *GetRecentPostsOptions
func (*Pinboard) GetSuggestedTags ¶
func (*Pinboard) GetUserSecret ¶
type PinboardAPIError ¶
type PinboardAPIError string
func (PinboardAPIError) Error ¶
func (e PinboardAPIError) Error() string
type PinboardError ¶
type PinboardError string
func (PinboardError) Error ¶
func (e PinboardError) Error() string
type Post ¶
type PostsAtDates ¶
Click to show internal directories.
Click to hide internal directories.