Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrIgnoreCate error = errors.New("article is ignored by category")
View Source
var ErrIgnoreVIP error = errors.New("article is ignored by vip required")
View Source
var ErrTimeOverDays error = errors.New("article update time out of range")
Functions ¶
Types ¶
type Article ¶
type Article struct { Id string Title string Content string WebsiteId string WebsiteDomain string WebsiteTitle string UpdateTime *timestamppb.Timestamp U *url.URL // contains filtered or unexported fields }
func NewArticle ¶
func NewArticle() *Article
type ByUpdateTime ¶
type ByUpdateTime []*Article
func (ByUpdateTime) Len ¶
func (u ByUpdateTime) Len() int
func (ByUpdateTime) Less ¶
func (u ByUpdateTime) Less(i, j int) bool
func (ByUpdateTime) Swap ¶
func (u ByUpdateTime) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.