Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Giphys ¶
Giphys Common resource link for Giphy actions
func (*Giphys) ConvertIDsToIframes ¶
ConvertIDsToIframes Convert any IDs in the content into <iframe> embeds
func (*Giphys) ExtractContentsAndSearchAPI ¶
ExtractContentsAndSearchAPI Convert any searches, connecting to Giphy where required
type GiphysExtractor ¶
GiphysExtractor Interface for extracting a Giphy search
type Journal ¶
type Journal struct {
ID int `json:"id"`
Slug string `json:"slug"`
Title string `json:"title"`
Date string `json:"date"`
Content string `json:"content"`
}
Journal model
func (Journal) GetEditableDate ¶
GetEditableDate Get the date string for editing
type Journals ¶
type Journals struct {
Container *app.Container
Gs GiphysExtractor
}
Journals Common database resource link for Journal actions
func (*Journals) CreateTable ¶
CreateTable Create the actual table
func (*Journals) EnsureUniqueSlug ¶
EnsureUniqueSlug Make sure the current slug is unique
func (*Journals) FindBySlug ¶
FindBySlug Find a journal by slug
Click to show internal directories.
Click to hide internal directories.