Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Article ¶
type Article struct { ID uuid.UUID `json:"id,omitempty"` SiteID uuid.UUID `json:"site_id,omitempty"` Lang string `json:"lang,omitempty"` Title string `json:"title,omitempty"` Desc string `json:"desc,omitempty"` Link string `json:"link,omitempty"` Image string `json:"image,omitempty"` PubDate time.Time `json:"pub_date,omitempty"` PubDiff string `json:"pub_diff,omitempty"` }
func ArticleFromEntity ¶
type Message ¶
type Message struct { ChatID int64 `json:"chat_id,omitempty"` ImageURL string `json:"image_url,omitempty"` View View `json:"view,omitempty"` Data any `json:"data,omitempty"` Delay bool `json:"delay,omitempty"` }
func (*Message) UnmarshalJSON ¶
type View ¶
type View string
const ( ViewAppStart View = "appstart.html" ViewAppStop View = "appstop.html" ViewArticles View = "articles.html" ViewArticle View = "article.html" ViewChat View = "chat.html" ViewSites View = "sites.html" ViewSub View = "sub.html" ViewSuccess View = "success.html" ViewError View = "error.html" ViewNotFound View = "notfound.html" )
Click to show internal directories.
Click to hide internal directories.