Documentation ¶
Index ¶
- Constants
- func EntryTemplates(ee *entry.Entry) []string
- type Alternate
- type Asset
- type Assets
- type CacheScope
- type Eagle
- func (e *Eagle) AbsoluteURL(path string) string
- func (e *Eagle) Close()
- func (e *Eagle) DeduceSections(entry *entry.Entry) error
- func (e *Eagle) FetchLastfmScrobbles(year int, month time.Month, day int) error
- func (e *Eagle) GenerateDescription(ee *entry.Entry, force bool) error
- func (e *Eagle) GetAll(opts *database.QueryOptions) ([]*entry.Entry, error)
- func (e *Eagle) GetAssets() *Assets
- func (e *Eagle) GetByDate(opts *database.QueryOptions, year, month, day int) ([]*entry.Entry, error)
- func (e *Eagle) GetByEmoji(opts *database.QueryOptions, emoji string) ([]*entry.Entry, error)
- func (e *Eagle) GetByProperty(opts *database.QueryOptions, property, value string) ([]*entry.Entry, error)
- func (e *Eagle) GetBySection(opts *database.QueryOptions, sections ...string) ([]*entry.Entry, error)
- func (e *Eagle) GetByTag(opts *database.QueryOptions, tag string) ([]*entry.Entry, error)
- func (e *Eagle) GetDeleted(opts *database.PaginationOptions) ([]*entry.Entry, error)
- func (e *Eagle) GetDrafts(opts *database.PaginationOptions) ([]*entry.Entry, error)
- func (e *Eagle) GetEmojis() ([]string, error)
- func (e *Eagle) GetEntries(includeList bool) ([]*entry.Entry, error)
- func (e *Eagle) GetEntry(id string) (*entry.Entry, error)
- func (e *Eagle) GetPrivate(opts *database.PaginationOptions, audience string) ([]*entry.Entry, error)
- func (e *Eagle) GetRedirects() map[string]string
- func (e *Eagle) GetSidecar(entry *entry.Entry) (*Sidecar, error)
- func (e *Eagle) GetSyndicators() []*syndicator.Config
- func (e *Eagle) GetTags() ([]string, error)
- func (e *Eagle) GetUnlisted(opts *database.PaginationOptions) ([]*entry.Entry, error)
- func (e *Eagle) GetWebmentionTargets(entry *entry.Entry) ([]string, []string, []string, error)
- func (e *Eagle) IsCached(scope CacheScope, filename string) ([]byte, time.Time, bool)
- func (e *Eagle) MakeMonthlyScrobblesReport(year int, month time.Month) error
- func (e *Eagle) MakeYearlyScrobblesReport(year int) error
- func (e *Eagle) PostSaveEntry(ee *entry.Entry, syndicators []string)
- func (e *Eagle) PreCreateEntry(ee *entry.Entry) error
- func (e *Eagle) ProcessLocation(ee *entry.Entry) error
- func (e *Eagle) ProcessLocationMap(ee *entry.Entry) error
- func (e *Eagle) PurgeCache(filename string)
- func (e *Eagle) ReceiveWebmentions(payload *WebmentionPayload) error
- func (e *Eagle) RemoveCache(ee *entry.Entry)
- func (e *Eagle) Render(w io.Writer, data *RenderData, tpls []string) error
- func (e *Eagle) ResetCache()
- func (e *Eagle) SaveCache(scope CacheScope, filename string, data []byte, modtime time.Time)
- func (e *Eagle) SaveEntry(entry *entry.Entry) error
- func (e *Eagle) Search(opts *database.QueryOptions, query string) ([]*entry.Entry, error)
- func (e *Eagle) SendWebmentions(entry *entry.Entry) error
- func (e *Eagle) SyncStorage()
- func (e *Eagle) TransformEntry(id string, transformers ...EntryTransformer) (*entry.Entry, error)
- func (e *Eagle) UpdateBlogroll() error
- func (e *Eagle) UpdateReadsSummary() error
- func (e *Eagle) UpdateSidecar(entry *entry.Entry, t func(*Sidecar) (*Sidecar, error)) error
- func (e *Eagle) UpdateWatchesSummary() error
- func (e *Eagle) UploadAnonymousMedia(ext string, reader io.Reader) (string, error)
- func (e *Eagle) UploadMedia(filename, ext string, reader io.Reader) (string, error)
- type EntryTransformer
- type Feed
- type ImgProxy
- type ImgProxySettings
- type IndividualStats
- type Lastfm
- type Media
- type Miniflux
- type RenderData
- func (rd *RenderData) GetEntry(id string) *entry.Entry
- func (rd *RenderData) GetFile(path string) string
- func (rd *RenderData) GetJSON(path string) interface{}
- func (rd *RenderData) GetSidecar() *Sidecar
- func (rd *RenderData) HasFile(path string) bool
- func (rd *RenderData) HeadTitle() string
- func (rd *RenderData) ReadsSummary() *entry.ReadsSummary
- func (rd *RenderData) TryFiles(filenames ...string) string
- func (rd *RenderData) WatchesSummary() *entry.WatchesSummary
- type ScrobbleStats
- type Sidecar
- type WebmentionPayload
Constants ¶
View Source
const ( AssetsDirectory string = "assets" ContentDirectory string = "content" )
View Source
const ( TemplatesExtension string = ".html" TemplatesDirectory string = "templates" TemplateBase string = "base" TemplateSingle string = "single" TemplateFeed string = "feed" TemplateList string = "list" TemplateError string = "error" TemplateLogin string = "login" TemplateSearch string = "search" TemplateEditor string = "editor" TemplateNew string = "new" TemplateIndex string = "index" TemplateTags string = "tags" TemplateEmojis string = "emojis" TemplateAuth string = "auth" TemplateDashboard string = "dashboard" TemplateBook string = "book" )
View Source
const (
AssetsBaseURL string = "/assets"
)
View Source
const ReadsSummary = "_summary.reads.json"
View Source
const WatchesSummary = "_summary.watches.json"
Variables ¶
This section is empty.
Functions ¶
func EntryTemplates ¶
Types ¶
type CacheScope ¶
type CacheScope string
const ( CacheRegular CacheScope = "reg" CacheTor CacheScope = "tor" )
type Eagle ¶
type Eagle struct { notifier.Notifier Parser *entry.Parser Config *config.Config // contains filtered or unexported fields }
func (*Eagle) AbsoluteURL ¶
func (*Eagle) FetchLastfmScrobbles ¶
func (*Eagle) GenerateDescription ¶
func (*Eagle) GetByEmoji ¶
func (*Eagle) GetByProperty ¶
func (*Eagle) GetBySection ¶
func (*Eagle) GetDeleted ¶
func (*Eagle) GetPrivate ¶
func (*Eagle) GetRedirects ¶
func (*Eagle) GetSyndicators ¶
func (e *Eagle) GetSyndicators() []*syndicator.Config
func (*Eagle) GetUnlisted ¶
func (*Eagle) GetWebmentionTargets ¶
func (*Eagle) MakeMonthlyScrobblesReport ¶
func (*Eagle) MakeYearlyScrobblesReport ¶
func (*Eagle) PurgeCache ¶
func (*Eagle) ReceiveWebmentions ¶
func (e *Eagle) ReceiveWebmentions(payload *WebmentionPayload) error
func (*Eagle) RemoveCache ¶
func (*Eagle) ResetCache ¶
func (e *Eagle) ResetCache()
func (*Eagle) SyncStorage ¶
func (e *Eagle) SyncStorage()
func (*Eagle) TransformEntry ¶
func (*Eagle) UpdateBlogroll ¶
func (*Eagle) UpdateReadsSummary ¶
func (*Eagle) UpdateSidecar ¶
func (*Eagle) UpdateWatchesSummary ¶
func (*Eagle) UploadAnonymousMedia ¶
type ImgProxySettings ¶
type IndividualStats ¶
type RenderData ¶
type RenderData struct { // All pages must have some sort of Entry embedded. // This allows us to set generic information about // a page that may be needed. *entry.Entry Assets *Assets Me config.Me Site config.Site // For page-specific variables. Data interface{} Alternates []Alternate User string IsHome bool IsLoggedIn bool IsAdmin bool NoIndex bool TorUsed bool OnionAddress string // contains filtered or unexported fields }
func (*RenderData) GetFile ¶
func (rd *RenderData) GetFile(path string) string
func (*RenderData) GetJSON ¶
func (rd *RenderData) GetJSON(path string) interface{}
func (*RenderData) GetSidecar ¶
func (rd *RenderData) GetSidecar() *Sidecar
func (*RenderData) HasFile ¶
func (rd *RenderData) HasFile(path string) bool
func (*RenderData) HeadTitle ¶
func (rd *RenderData) HeadTitle() string
func (*RenderData) ReadsSummary ¶
func (rd *RenderData) ReadsSummary() *entry.ReadsSummary
func (*RenderData) TryFiles ¶
func (rd *RenderData) TryFiles(filenames ...string) string
func (*RenderData) WatchesSummary ¶
func (rd *RenderData) WatchesSummary() *entry.WatchesSummary
type ScrobbleStats ¶
type ScrobbleStats struct { Start time.Time `json:"start"` End time.Time `json:"end"` TotalDuration int `json:"totalDuration"` ListeningClock []int `json:"listeningClock"` Scrobbles int `json:"scrobbles"` TracksPerDay int `json:"tracksPerDay"` DurationPerDay int `json:"durationPerDay"` ScrobblesPerWeekday []int `json:"scrobblesPerWeekday"` UniqueArtists int `json:"uniqueArtists"` UniqueTracks int `json:"uniqueTracks"` UniqueAlbums int `json:"uniqueAlbums"` Artists []*IndividualStats `json:"artists"` Tracks []*IndividualStats `json:"tracks"` Albums []*IndividualStats `json:"albums"` }
Click to show internal directories.
Click to hide internal directories.