common

package module
v0.0.0-...-3c88eb3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2023 License: MIT Imports: 10 Imported by: 0

README

feeder-common

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoManager

type MongoManager struct {
	Client  *mongo.Client
	Context context.Context
}

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"`
	TeaserText        string             `xml:"TeaserText" bson:"TeaserText" json:"TeaserText"`
	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"`
	TeaserText        string   `xml:"TeaserText"`
	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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL