modify

package
v0.0.0-...-9797080 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2015 License: BSD-3-Clause Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action interface {
	json.Marshaler
}

type Add

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

func FactoryAdd

func FactoryAdd(id int) *Add

func NewAdd

func NewAdd(p *Protocol) *Add

func (*Add) MarshalJSON

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

func (*Add) SetRefId

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

func (*Add) SetTitle

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

func (*Add) SetURL

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

type Archive

type Archive struct {
	*Protocol
}

func FactoryArchive

func FactoryArchive(id int) *Archive

func NewArchive

func NewArchive(p *Protocol) *Archive

func (*Archive) MarshalJSON

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

type Delete

type Delete struct {
	*Protocol
}

func FactoryDelete

func FactoryDelete(id int) *Delete

func NewDelete

func NewDelete(p *Protocol) *Delete

func (*Delete) MarshalJSON

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

type Favorite

type Favorite struct {
	*Protocol
}

func FactoryFavorite

func FactoryFavorite(id int) *Favorite

func NewFavorite

func NewFavorite(p *Protocol) *Favorite

func (*Favorite) MarshalJSON

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

type Protocol

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

func (*Protocol) SetTS

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

type ProtocolTags

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

func (*ProtocolTags) SetTags

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

type Readd

type Readd struct {
	*Protocol
}

func FactoryReadd

func FactoryReadd(id int) *Readd

func NewReadd

func NewReadd(p *Protocol) *Readd

func (*Readd) MarshalJSON

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

type TagsAdd

type TagsAdd struct {
	*Protocol
	*ProtocolTags
}

func FactoryTagsAdd

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

func NewTagsAdd

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

func (*TagsAdd) MarshalJSON

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

type TagsClear

type TagsClear struct {
	*Protocol
}

func FactoryTagsClear

func FactoryTagsClear(id int) *TagsClear

func NewTagsClear

func NewTagsClear(p *Protocol) *TagsClear

func (*TagsClear) MarshalJSON

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

type TagsRemove

type TagsRemove struct {
	*Protocol
	*ProtocolTags
}

func FactoryTagsRemove

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

func NewTagsRemove

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

func (*TagsRemove) MarshalJSON

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

type TagsRename

type TagsRename struct {
	*Protocol
	OldTag string
	NewTag string
}

func FactoryTagsRename

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

func NewTagsRename

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

func (*TagsRename) MarshalJSON

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

type TagsReplace

type TagsReplace struct {
	*Protocol
	*ProtocolTags
}

func FactoryTagsReplace

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

func NewTagsReplace

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

func (*TagsReplace) MarshalJSON

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

type Unfavorite

type Unfavorite struct {
	*Protocol
}

func FactoryUnfavorite

func FactoryUnfavorite(id int) *Unfavorite

func NewUnfavorite

func NewUnfavorite(p *Protocol) *Unfavorite

func (*Unfavorite) MarshalJSON

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL