Documentation ¶
Index ¶
- type AtomLink
- type Channel
- type GUID
- type Image
- type Item
- type ItemBSON
- type ItemJSON
- type RSSInit
- func (rss *RSSInit) AddToMongoDatabase(item ItemBSON, c *mongo.Client, ctx context.Context) error
- func (rss *RSSInit) BasicAuth(next http.HandlerFunc) http.HandlerFunc
- func (rss *RSSInit) CreateIndex(w http.ResponseWriter, r *http.Request)
- func (rss *RSSInit) CreateItemAPI(w http.ResponseWriter, r *http.Request)
- func (rss *RSSInit) CreateRSSFeed() []byte
- func (rss *RSSInit) GetAllFromMSSQLDatabaseAndConvert(table string) []Item
- func (rss *RSSInit) GetAllFromMongoDatabaseAndConvert() []Item
- func (rss *RSSInit) GetMongoFindResults(c *mongo.Client, ctx context.Context) []Item
- func (rss *RSSInit) HealthCheck(w http.ResponseWriter, r *http.Request)
- func (rss *RSSInit) WriteToMSSQLDatabase(item ItemJSON, table string) error
- func (rss *RSSInit) WriteToMongoDatabase(item ItemBSON, database string, collection string) error
- type Rss
- type URL
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct { XMLName xml.Name `xml:"channel"` Title string `xml:"title"` Link string `xml:"link"` Description string `xml:"description"` Atom string `xml:"xmlns:atom,attr"` AtomLink AtomLink `xml:"atom:link"` LastBuildDate string `xml:"lastBuildDate"` PubDate string `xml:"pubDate"` Item []Item `xml:"item"` }
type RSSInit ¶
type RSSInit struct { DatabaseType string ConnectionString string DatabaseUri string Username string Password string RssTitle string RssDescription string RootPath string }
func (*RSSInit) AddToMongoDatabase ¶
func (*RSSInit) BasicAuth ¶
func (rss *RSSInit) BasicAuth(next http.HandlerFunc) http.HandlerFunc
func (*RSSInit) CreateIndex ¶
func (rss *RSSInit) CreateIndex(w http.ResponseWriter, r *http.Request)
func (*RSSInit) CreateItemAPI ¶
func (rss *RSSInit) CreateItemAPI(w http.ResponseWriter, r *http.Request)
func (*RSSInit) CreateRSSFeed ¶
func (*RSSInit) GetAllFromMSSQLDatabaseAndConvert ¶
func (*RSSInit) GetAllFromMongoDatabaseAndConvert ¶
func (*RSSInit) GetMongoFindResults ¶
func (*RSSInit) HealthCheck ¶
func (rss *RSSInit) HealthCheck(w http.ResponseWriter, r *http.Request)
func (*RSSInit) WriteToMSSQLDatabase ¶
Click to show internal directories.
Click to hide internal directories.