Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoManager ¶
func (*MongoManager) ConnectToMongoDb ¶
func (m *MongoManager) ConnectToMongoDb()
func (*MongoManager) DisconnectFromMongoDb ¶
func (m *MongoManager) DisconnectFromMongoDb()
func (*MongoManager) GetAllArticles ¶
func (m *MongoManager) GetAllArticles() []NewsArticle
func (*MongoManager) GetArticleById ¶
func (m *MongoManager) GetArticleById(id string) NewsArticle
func (*MongoManager) StoreArticles ¶
func (m *MongoManager) StoreArticles(articles []NewsArticle)
type NewListInformation ¶
type NewListInformation struct { XMLName xml.Name `xml:"NewListInformation"` ClubName string `xml:"ClubName"` ClubWebsiteURL string `xml:"ClubWebsiteURL"` NewsletterNewsItems NewsletterNewsItems `xml:"NewsletterNewsItems"` }
type NewsArticle ¶
type NewsArticle struct { XMLName xml.Name `xml:"NewsArticle" bson:"-" json:"-"` ID primitive.ObjectID `bson:"_id,omitempty" json:"ID"` ArticleURL string `xml:"ArticleURL" bson:"ArticleURL" json:"ArticleURL"` NewsArticleID string `xml:"NewsArticleID" bson:"NewsArticleID" json:"NewsArticleID"` PublishDate string `xml:"PublishDate" bson:"PublishDate" json:"PublishDate"` Taxonomies string `xml:"Taxonomies" bson:"Taxonomies" json:"Taxonomies"` Subtitle string `xml:"Subtitle" bson:"Subtitle" json:"Subtitle"` ThumbnailImageURL string `xml:"ThumbnailImageURL" bson:"ThumbnailImageURL" json:"ThumbnailImageURL"` Title string `xml:"Title" bson:"Title" json:"Title"` BodyText string `xml:"BodyText" bson:"BodyText" json:"BodyText"` GalleryImageURLs string `xml:"GalleryImageURLs" bson:"GalleryImageURLs" json:"GalleryImageURLs"` VideoURL string `xml:"VideoURL" bson:"VideoURL" json:"VideoURL"` OptaMatchId string `xml:"OptaMatchId" bson:"OptaMatchId" json:"OptaMatchId"` LastUpdateDate string `xml:"LastUpdateDate" bson:"LastUpdateDate" json:"LastUpdateDate"` IsPublished string `xml:"IsPublished" bson:"IsPublished" json:"IsPublished"` }
type NewsArticleInformation ¶
type NewsArticleInformation struct { XMLName xml.Name `xml:"NewsArticleInformation"` ClubName string `xml:"ClubName"` ClubWebsiteURL string `xml:"ClubWebsiteURL"` NewsArticle NewsArticle `xml:"NewsArticle"` }
type NewsletterNewsItem ¶
type NewsletterNewsItem struct { XMLName xml.Name `xml:"NewsletterNewsItem"` ArticleURL string `xml:"ArticleURL"` NewsArticleID string `xml:"NewsArticleID"` PublishDate string `xml:"PublishDate"` Taxonomies string `xml:"Taxonomies"` ThumbnailImageURL string `xml:"ThumbnailImageURL"` Title string `xml:"Title"` OptaMatchId string `xml:"OptaMatchId"` LastUpdateDate string `xml:"LastUpdateDate"` IsPublished string `xml:"IsPublished"` }
type NewsletterNewsItems ¶
type NewsletterNewsItems struct { XMLName xml.Name `xml:"NewsletterNewsItems"` NewsletterNewsItem []NewsletterNewsItem `xml:"NewsletterNewsItem"` }
Click to show internal directories.
Click to hide internal directories.