Documentation ¶
Index ¶
Constants ¶
View Source
const (
DBPostsSchema = `` /* 416-byte string literal not displayed */
)
Variables ¶
View Source
var ( ErrDoesNotExist = errors.New("does not exist") ErrAlreadyExists = errors.New("already exists") )
View Source
var DB = db.DB
Functions ¶
This section is empty.
Types ¶
type Post ¶
type Post struct { PostID int64 `josn:"id" db:"post_id"` Title string `json:"title"` PostDescription string `json:"description" db:"post_description"` Link string `json:"link"` Updated time.Time `json:"updated"` Published time.Time `json:"published"` Author string `json:"author"` Content string `json:"content"` Tags string `json:"tags"` ShortID string `json:"short_id" db:"short_id"` JsonData types.JsonMap `json:"data" db:"json_data"` feeds.Feed }
func GetPostsByFeedId ¶
func (*Post) WriteWithShortId ¶
Writes with provided short id
Click to show internal directories.
Click to hide internal directories.