getpocket: github.com/Shaked/getpocket/commands/modify Index | Files

package modify

import "github.com/Shaked/getpocket/commands/modify"

Index

Package Files

actions.go add.go archive.go delete.go favorite.go readd.go tag_replace.go tags_add.go tags_clear.go tags_remove.go tags_rename.go unfavorite.go

type Action Uses

type Action interface {
    json.Marshaler
}

type Add Uses

type Add struct {
    *Protocol
    *ProtocolTags
    RefId int
    Title string
    URL   string
}

func FactoryAdd Uses

func FactoryAdd(id int) *Add

func NewAdd Uses

func NewAdd(p *Protocol) *Add

func (*Add) MarshalJSON Uses

func (a *Add) MarshalJSON() ([]byte, error)

func (*Add) SetRefId Uses

func (a *Add) SetRefId(refId int) *Add

func (*Add) SetTitle Uses

func (a *Add) SetTitle(title string) *Add

func (*Add) SetURL Uses

func (a *Add) SetURL(url string) *Add

type Archive Uses

type Archive struct {
    *Protocol
}

func FactoryArchive Uses

func FactoryArchive(id int) *Archive

func NewArchive Uses

func NewArchive(p *Protocol) *Archive

func (*Archive) MarshalJSON Uses

func (a *Archive) MarshalJSON() ([]byte, error)

type Delete Uses

type Delete struct {
    *Protocol
}

func FactoryDelete Uses

func FactoryDelete(id int) *Delete

func NewDelete Uses

func NewDelete(p *Protocol) *Delete

func (*Delete) MarshalJSON Uses

func (a *Delete) MarshalJSON() ([]byte, error)

type Favorite Uses

type Favorite struct {
    *Protocol
}

func FactoryFavorite Uses

func FactoryFavorite(id int) *Favorite

func NewFavorite Uses

func NewFavorite(p *Protocol) *Favorite

func (*Favorite) MarshalJSON Uses

func (a *Favorite) MarshalJSON() ([]byte, error)

type Protocol Uses

type Protocol struct {
    Id   int    `json:"item_id"`
    Time string `json:"timestamp,omitempty"`
}

func (*Protocol) SetTS Uses

func (a *Protocol) SetTS(ts string) *Protocol

type ProtocolTags Uses

type ProtocolTags struct {
    Tags string `json:"tags,omitempty"`
}

func (*ProtocolTags) SetTags Uses

func (a *ProtocolTags) SetTags(tags []string) *ProtocolTags

type Readd Uses

type Readd struct {
    *Protocol
}

func FactoryReadd Uses

func FactoryReadd(id int) *Readd

func NewReadd Uses

func NewReadd(p *Protocol) *Readd

func (*Readd) MarshalJSON Uses

func (a *Readd) MarshalJSON() ([]byte, error)

type TagsAdd Uses

type TagsAdd struct {
    *Protocol
    *ProtocolTags
}

func FactoryTagsAdd Uses

func FactoryTagsAdd(id int, tags []string) *TagsAdd

func NewTagsAdd Uses

func NewTagsAdd(p *Protocol, pt *ProtocolTags) *TagsAdd

func (*TagsAdd) MarshalJSON Uses

func (a *TagsAdd) MarshalJSON() ([]byte, error)

type TagsClear Uses

type TagsClear struct {
    *Protocol
}

func FactoryTagsClear Uses

func FactoryTagsClear(id int) *TagsClear

func NewTagsClear Uses

func NewTagsClear(p *Protocol) *TagsClear

func (*TagsClear) MarshalJSON Uses

func (a *TagsClear) MarshalJSON() ([]byte, error)

type TagsRemove Uses

type TagsRemove struct {
    *Protocol
    *ProtocolTags
}

func FactoryTagsRemove Uses

func FactoryTagsRemove(id int, tags []string) *TagsRemove

func NewTagsRemove Uses

func NewTagsRemove(p *Protocol, pt *ProtocolTags) *TagsRemove

func (*TagsRemove) MarshalJSON Uses

func (a *TagsRemove) MarshalJSON() ([]byte, error)

type TagsRename Uses

type TagsRename struct {
    *Protocol
    OldTag string
    NewTag string
}

func FactoryTagsRename Uses

func FactoryTagsRename(id int, oldTag, newTag string) *TagsRename

func NewTagsRename Uses

func NewTagsRename(p *Protocol, oldTag, newTag string) *TagsRename

func (*TagsRename) MarshalJSON Uses

func (a *TagsRename) MarshalJSON() ([]byte, error)

type TagsReplace Uses

type TagsReplace struct {
    *Protocol
    *ProtocolTags
}

func FactoryTagsReplace Uses

func FactoryTagsReplace(id int, tags []string) *TagsReplace

func NewTagsReplace Uses

func NewTagsReplace(p *Protocol, pt *ProtocolTags) *TagsReplace

func (*TagsReplace) MarshalJSON Uses

func (a *TagsReplace) MarshalJSON() ([]byte, error)

type Unfavorite Uses

type Unfavorite struct {
    *Protocol
}

func FactoryUnfavorite Uses

func FactoryUnfavorite(id int) *Unfavorite

func NewUnfavorite Uses

func NewUnfavorite(p *Protocol) *Unfavorite

func (*Unfavorite) MarshalJSON Uses

func (a *Unfavorite) MarshalJSON() ([]byte, error)

Package modify imports 2 packages (graph) and is imported by 1 packages. Updated 2016-07-16. Refresh now. Tools for package owners.