Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { GetKeywordPool() ([]string, error) AddNewsItems(newsItems []NewsItem) error // contains filtered or unexported methods }
Client is an interface to interact with the firebase firestore
type FirestoreClient ¶
type FirestoreClient struct {
// contains filtered or unexported fields
}
FirestoreClient implements Client
func (*FirestoreClient) AddNewsItems ¶
func (fc *FirestoreClient) AddNewsItems(newsItems []NewsItem) error
AddNewsItems add a list of news items to the database
func (*FirestoreClient) CacheNewsTitle ¶
func (fc *FirestoreClient) CacheNewsTitle(titles []string) error
CacheNewsTitle to the database
func (*FirestoreClient) GetKeywordPool ¶
func (fc *FirestoreClient) GetKeywordPool() ([]string, error)
GetKeywordPool gets the pool of keywords from the database
Click to show internal directories.
Click to hide internal directories.