Versions in this module Expand all Collapse all v4 v4.0.0 Jun 10, 2022 Changes in this version + const AssetsBaseURL + const AssetsDirectory + const ContentDirectory + const ReadsSummary + const TemplateAuth + const TemplateBase + const TemplateBook + const TemplateDashboard + const TemplateEditor + const TemplateEmojis + const TemplateError + const TemplateFeed + const TemplateIndex + const TemplateList + const TemplateLogin + const TemplateNew + const TemplateSearch + const TemplateSingle + const TemplateTags + const TemplatesDirectory + const TemplatesExtension + const WatchesSummary + func EntryTemplates(ee *entry.Entry) []string + type Alternate struct + Href string + Type string + type Asset struct + Body []byte + Path string + Type string + type Assets struct + func (a *Assets) Get(id string) *Asset + func (a *Assets) Path(id string) string + type CacheScope string + const CacheRegular + const CacheTor + type Eagle struct + Config *config.Config + Parser *entry.Parser + func NewEagle(conf *config.Config) (*Eagle, error) + 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 func(*entry.Entry) (*entry.Entry, error) + type Feed struct + Category string + Feed string + Site string + Title string + type ImgProxy struct + func (i *ImgProxy) Transform(reader io.Reader, format string, width, quality int) (io.Reader, error) + type ImgProxySettings struct + Format string + Quality int + Width int + type IndividualStats struct + Duration int + Name string + Scrobbles int + type Lastfm struct + func (l *Lastfm) Fetch(year int, month time.Month, day int) ([]*lastfmTrack, error) + type Media struct + func (m *Media) UploadMedia(filename string, data io.Reader) (string, error) + type Miniflux struct + func (m *Miniflux) Fetch() ([]Feed, error) + type RenderData struct + Alternates []Alternate + Assets *Assets + Data interface{} + IsAdmin bool + IsHome bool + IsLoggedIn bool + Me config.Me + NoIndex bool + OnionAddress string + Site config.Site + TorUsed bool + User string + 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 struct + Albums []*IndividualStats + Artists []*IndividualStats + DurationPerDay int + End time.Time + ListeningClock []int + Scrobbles int + ScrobblesPerWeekday []int + Start time.Time + TotalDuration int + Tracks []*IndividualStats + TracksPerDay int + UniqueAlbums int + UniqueArtists int + UniqueTracks int + type Sidecar struct + Context map[string]interface{} + Targets []string + Webmentions []map[string]interface{} + type WebmentionPayload struct + Deleted bool + Post map[string]interface{} + Secret string + Source string + Target string Other modules containing this package github.com/hacdias/eagle github.com/hacdias/eagle/v2