Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertData ¶
func InsertDataEx ¶
func UpdateAnalyseFieldInDatabase ¶
func UpdateAnalyseFieldInDatabase(topic string)
Types ¶
type NewsItem ¶
type NewsItem struct { ID int64 `bson:"id"` Title string `bson:"title"` Date *time.Time `bson:"date"` Link string `bson:"link"` Source string `bson:"source,omitempty"` Score string `bson:"score"` Analyse string `bson:"analyse"` // contains filtered or unexported fields }
func CollectNews ¶
type ScoreResponse ¶
Define a struct that matches the JSON structure
Click to show internal directories.
Click to hide internal directories.