Documentation ¶
Index ¶
- type Article
- func (a Article) AddSubscriber(account string) error
- func (a Article) Destroy() error
- func (a Article) Exist() (bool, error)
- func (a Article) Find(code string) Article
- func (a Article) MatchKeyword(keyword string) bool
- func (a Article) ParseID(Link string) (id int)
- func (a Article) RemoveSubscriber(sub string) error
- func (a Article) Save() error
- func (a Article) String() string
- func (a Article) StringWithPushSum() string
- func (a Article) Subscribers() ([]string, error)
- type Articles
- type Comment
- type Comments
- type Driver
- type DynamoDB
- type Redis
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Article ¶
type Article struct { ID int `json:"ID,omitempty"` Code string `json:"code,omitempty"` Title string Link string Date string `json:"Date,omitempty"` Author string `json:"Author,omitempty"` Comments Comments `json:"comments,omitempty"` LastPushDateTime time.Time `json:"lastPushDateTime,omitempty"` Board string `json:"board,omitempty"` PushSum int `json:"pushSum,omitempty"` // contains filtered or unexported fields }
func NewArticle ¶
func (Article) AddSubscriber ¶
func (Article) MatchKeyword ¶
func (Article) RemoveSubscriber ¶
func (Article) StringWithPushSum ¶
func (Article) Subscribers ¶
Click to show internal directories.
Click to hide internal directories.