# README
Fetcher
Fetch news from a entrance url, filter update time in the range, and storage them into a json. So, Microservice can read this fetched data directly.
Skeleton
- fetcher.go: Fetch action implemented here
- links.go: Fetch links from an entrance url.
- article.go: Domain Object here to implement functions that microservice needed and invoked, such as Get, List and Search.
- db.go: This is for fetched data persistence, load and save data directly.
Fetch kernal methods
There are kernal methods used to modified to match and fetch better, you can clone and rewrite the parts to implement your microservice.
func (a *Article) fetchTitle() (string, error) {}
func (a *Article) fetchUpdateTime() (*timestamppb.Timestamp, error) {}
func (a *Article) fetchContent() (string, error) {}
# Functions
Fetch fetch and storage all stuffs to `db/articles.json`.
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author