Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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 ¶ added in v0.0.4
type ByUpdateTime []*Article
func (ByUpdateTime) Len ¶ added in v0.0.4
func (u ByUpdateTime) Len() int
func (ByUpdateTime) Less ¶ added in v0.0.4
func (u ByUpdateTime) Less(i, j int) bool
func (ByUpdateTime) Swap ¶ added in v0.0.4
func (u ByUpdateTime) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.