entities

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddFeedRequest

type AddFeedRequest struct {
	URL    string `json:"URL"`
	Filter string `json:"Filter"`
}

AddFeedRequest is the struct for the add request

type RssFeed

type RssFeed struct {
	ID          int64          `json:"ID" gorm:"primarykey"`
	CreatedAt   time.Time      `json:"-"`
	UpdatedAt   time.Time      `json:"-"`
	DeletedAt   gorm.DeletedAt `json:"-" gorm:"index"`
	Title       string         `json:"Title"`
	Description string         `json:"Description"`
	URL         string         `json:"URL" gorm:"not null,unique"`
	Filter      string         `json:"Filter" gorm:"not null,unique"`
}

RssFeed represents a rss feed

type RssItem

type RssItem struct {
	ID          int64          `json:"-" gorm:"primarykey"`
	CreatedAt   time.Time      `json:"-"`
	UpdatedAt   time.Time      `json:"-"`
	DeletedAt   gorm.DeletedAt `json:"-" gorm:"index"`
	Title       string         `json:"Title"`
	Description string         `json:"Description"`
	URL         string         `json:"URL" gorm:"not null,unique"`
	Sent        bool           `json:"-"`
	Feed        int64          `json:"-" gorm:"not null"`
	ImageURL    string         `json:"-"`
}

RssItem is a rss element

Jump to

Keyboard shortcuts

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