Versions in this module Expand all Collapse all v0 v0.13.0 Feb 21, 2021 v0.10.0 Feb 11, 2017 Changes in this version + var ITEMCACHE_SHARD_COUNT = 32 + var VIEWMODELCACHE_SHARD_COUNT = 32 + var VIEWMODELLISTCACHE_SHARD_COUNT = 32 + func GetBaseURL(route route.Route) string + func GetTypedItemURL(route route.Route, urlType string) string + type AliasIndexOrchestrator struct + func (orchestrator *AliasIndexOrchestrator) GetIndexEntries(hostname, prefix string) []viewmodel.Alias + type CacheUpdateCallback struct + func (updateCallback *CacheUpdateCallback) Execute(route route.Route) (err error) + func (updateCallback *CacheUpdateCallback) Name() string + func (updateCallback *CacheUpdateCallback) String() string + func (updateCallback *CacheUpdateCallback) UpdateType() UpdateType + type ConcurrentItemMapShared struct + type ConcurrentViewModelListMapShared struct + type ConcurrentViewModelMapShared struct + type ConversionModelOrchestrator struct + func (orchestrator *ConversionModelOrchestrator) GetConversionModel(baseURL string, route route.Route) (model viewmodel.ConversionModel, found bool) + type Factory struct + func NewFactory(logger logger.Logger, config config.Config, repository dataaccess.Repository, ...) *Factory + func (factory *Factory) NewAliasIndexOrchestrator() *AliasIndexOrchestrator + func (factory *Factory) NewConversionModelOrchestrator() *ConversionModelOrchestrator + func (factory *Factory) NewFeedOrchestrator() *FeedOrchestrator + func (factory *Factory) NewFileOrchestrator() *FileOrchestrator + func (factory *Factory) NewNavigationOrchestrator() *NavigationOrchestrator + func (factory *Factory) NewOpenSearchDescriptionOrchestrator() *OpenSearchDescriptionOrchestrator + func (factory *Factory) NewSearchOrchestrator() *SearchOrchestrator + func (factory *Factory) NewSitemapOrchestrator() *SitemapOrchestrator + func (factory *Factory) NewTagsOrchestrator() *TagsOrchestrator + func (factory *Factory) NewTitlesOrchestrator() *TitlesOrchestrator + func (factory *Factory) NewTypeAheadOrchestrator() *TypeAheadOrchestrator + func (factory *Factory) NewUpdateOrchestrator() *UpdateOrchestrator + func (factory *Factory) NewViewModelOrchestrator() *ViewModelOrchestrator + func (factory *Factory) NewXMLSitemapOrchestrator() *XmlSitemapOrchestrator + type FeedOrchestrator struct + func (orchestrator *FeedOrchestrator) GetFeed(baseURL string, itemsPerPage, page int) (viewmodel.Feed, error) + type FileOrchestrator struct + func (orchestrator *FileOrchestrator) GetFile(fileRoute route.Route) (fileModel viewmodel.File, found bool) + func (orchestrator *FileOrchestrator) GetFileContentProvider(fileRoute route.Route) content.ContentProviderInterface + func (orchestrator *FileOrchestrator) GetFiles(itemRoute route.Route) []viewmodel.File + func (orchestrator *FileOrchestrator) GetImages(itemRoute route.Route) []viewmodel.Image + type ItemCache []*ConcurrentItemMapShared + func (m *ItemCache) Has(key string) bool + func (m *ItemCache) IsEmpty() bool + func (m *ItemCache) Remove(key string) + func (m *ItemCache) Set(key string, value *model.Item) + func (m ItemCache) Count() int + func (m ItemCache) Get(key string) (*model.Item, bool) + func (m ItemCache) GetShard(key string) *ConcurrentItemMapShared + func (m ItemCache) Iter() <-chan ItemCacheTuple + func (m ItemCache) IterBuffered() <-chan ItemCacheTuple + type ItemCacheTuple struct + Key string + Val *model.Item + type NavigationOrchestrator struct + func (orchestrator *NavigationOrchestrator) GetBreadcrumbNavigation(route route.Route) viewmodel.BreadcrumbNavigation + func (orchestrator *NavigationOrchestrator) GetItemNavigation(route route.Route) viewmodel.ItemNavigation + func (orchestrator *NavigationOrchestrator) GetToplevelNavigation() viewmodel.ToplevelNavigation + type OpenSearchDescriptionOrchestrator struct + func (orchestrator *OpenSearchDescriptionOrchestrator) GetDescriptionModel(hostname string) viewmodel.OpenSearchDescription + type Orchestrator struct + func (orchestrator *Orchestrator) GetPageTitle(headline string) string + func (orchestrator *Orchestrator) ItemExists(route route.Route) bool + func (orchestrator *Orchestrator) Subscribe(update chan Update) + func (orchestrator *Orchestrator) UpdateCache(dataaccessLayerUpdate dataaccess.Update) + type SearchOrchestrator struct + func (orchestrator *SearchOrchestrator) GetSearchResults(keywords string, page int) viewmodel.SearchResults + type SitemapOrchestrator struct + func (orchestrator *SitemapOrchestrator) GetSitemap() viewmodel.SitemapEntry + type TagsOrchestrator struct + func (orchestrator *TagsOrchestrator) GetTagCloud() viewmodel.TagCloud + func (orchestrator *TagsOrchestrator) GetTags() []viewmodel.Tag + type TitlesOrchestrator struct + func (orchestrator *TitlesOrchestrator) GetTitles() []viewmodel.Title + type TypeAheadOrchestrator struct + func (orchestrator *TypeAheadOrchestrator) GetSuggestions(keywords string) []viewmodel.TypeAhead + type Update struct + func NewUpdate(updateType UpdateType, route route.Route) Update + func (update *Update) Route() route.Route + func (update *Update) String() string + func (update *Update) Type() UpdateType + type UpdateOrchestrator struct + func (orchestrator *UpdateOrchestrator) GetUpdatedModel(itemRoute route.Route) (viewModel viewmodel.Model, found bool) + func (orchestrator *UpdateOrchestrator) StartWatching(route route.Route) + func (orchestrator *UpdateOrchestrator) StopWatching(route route.Route) + type UpdateType int + const UpdateTypeDeleted + const UpdateTypeModified + const UpdateTypeNew + const UpdateTypeUnchanged + func (updateType UpdateType) String() string + type ViewModelCache []*ConcurrentViewModelMapShared + func (m *ViewModelCache) Has(key string) bool + func (m *ViewModelCache) IsEmpty() bool + func (m *ViewModelCache) Remove(key string) + func (m *ViewModelCache) Set(key string, value viewmodel.Model) + func (m ViewModelCache) Count() int + func (m ViewModelCache) Get(key string) (viewmodel.Model, bool) + func (m ViewModelCache) GetShard(key string) *ConcurrentViewModelMapShared + func (m ViewModelCache) Iter() <-chan ViewModelCacheTuple + func (m ViewModelCache) IterBuffered() <-chan ViewModelCacheTuple + type ViewModelCacheTuple struct + Key string + Val viewmodel.Model + type ViewModelListCache []*ConcurrentViewModelListMapShared + func (m *ViewModelListCache) Has(key string) bool + func (m *ViewModelListCache) IsEmpty() bool + func (m *ViewModelListCache) Remove(key string) + func (m *ViewModelListCache) Set(key string, value []viewmodel.Model) + func (m ViewModelListCache) Count() int + func (m ViewModelListCache) Get(key string) ([]viewmodel.Model, bool) + func (m ViewModelListCache) GetShard(key string) *ConcurrentViewModelListMapShared + func (m ViewModelListCache) Iter() <-chan ViewModelListCacheTuple + func (m ViewModelListCache) IterBuffered() <-chan ViewModelListCacheTuple + type ViewModelListCacheTuple struct + Key string + Val []viewmodel.Model + type ViewModelOrchestrator struct + func (orchestrator *ViewModelOrchestrator) GetFullViewModel(itemRoute route.Route) (viewmodel.Model, bool) + func (orchestrator *ViewModelOrchestrator) GetLatest(itemRoute route.Route, pageSize, page int) (latest []viewmodel.Model, found bool) + func (orchestrator *ViewModelOrchestrator) GetViewModel(itemRoute route.Route) (viewModel viewmodel.Model, found bool) + func (orchestrator *ViewModelOrchestrator) GetViewModelByAlias(alias string) (viewModel viewmodel.Model, found bool) + type XmlSitemapOrchestrator struct + func (orchestrator *XmlSitemapOrchestrator) GetSitemapEntires(hostname string) []viewmodel.XmlSitemapEntry