Documentation ¶
Index ¶
- type Appearance
- type ExternalAPI
- type Manager
- func (m *Manager) Appearance() Appearance
- func (m *Manager) CFImageClassifier() cloudflare.ImageWorkerConfig
- func (m *Manager) CFImageDescriber() cloudflare.ImageWorkerConfig
- func (m *Manager) ExternalAPI() ExternalAPI
- func (m *Manager) Maps() Maps
- func (m *Manager) ORSConfig() ors.Config
- func (m *Manager) Privacy() Privacy
- func (m *Manager) Security() Security
- func (m *Manager) SetAppearance(ctx context.Context, value Appearance) (err error)
- func (m *Manager) SetExternalAPI(ctx context.Context, value ExternalAPI) error
- func (m *Manager) SetMaps(ctx context.Context, value Maps) error
- func (m *Manager) SetPrivacy(ctx context.Context, value Privacy) error
- func (m *Manager) SetSecurity(ctx context.Context, value Security) error
- func (m *Manager) SetStorage(ctx context.Context, value Storage) error
- func (m *Manager) SetVisitors(ctx context.Context, value Visitors) error
- func (m *Manager) Storage() Storage
- func (m *Manager) Visitors() Visitors
- type Maps
- type Privacy
- type Repository
- type Security
- type Storage
- type Values
- type Visitors
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Appearance ¶
type Appearance struct { SiteTitle string `json:"site_title" title:"Title" formType:"textarea" description:"The title of this site."` SiteFavicon string `` /* 155-byte string literal not displayed */ SiteHead string `` /* 130-byte string literal not displayed */ SiteHeader string `json:"site_header" title:"Header" formType:"textarea" description:"Injected at page start."` FeaturedAlbumName string `` /* 153-byte string literal not displayed */ Languages []string `json:"languages" title:"Languages" description:"Supported content languages."` // contains filtered or unexported fields }
func (Appearance) LanguageMatcher ¶
func (a Appearance) LanguageMatcher() (language.Matcher, []string)
type ExternalAPI ¶ added in v0.0.12
type ExternalAPI struct { CFImageClassifier cloudflare.ImageWorkerConfig `json:"cf_image_classifier"` CFImageDescriber cloudflare.ImageWorkerConfig `json:"cf_image_describer"` FacesRecognizer faces.RecognizerConfig `json:"faces_recognizer"` ORS ors.Config `json:"ors" description:"OpenRouteService configuration."` }
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager(r Repository, dc *dep.Cache) (*Manager, error)
func (*Manager) Appearance ¶
func (m *Manager) Appearance() Appearance
func (*Manager) CFImageClassifier ¶ added in v0.0.12
func (m *Manager) CFImageClassifier() cloudflare.ImageWorkerConfig
func (*Manager) CFImageDescriber ¶ added in v0.0.12
func (m *Manager) CFImageDescriber() cloudflare.ImageWorkerConfig
func (*Manager) ExternalAPI ¶ added in v0.0.12
func (m *Manager) ExternalAPI() ExternalAPI
func (*Manager) SetAppearance ¶
func (m *Manager) SetAppearance(ctx context.Context, value Appearance) (err error)
func (*Manager) SetExternalAPI ¶ added in v0.0.12
func (m *Manager) SetExternalAPI(ctx context.Context, value ExternalAPI) error
func (*Manager) SetSecurity ¶
func (*Manager) SetVisitors ¶
type Maps ¶
type Maps struct { Tiles string `` /* 174-byte string literal not displayed */ Attribution string `json:"attribution" title:"Attribution" description:"Map tiles attribution."` Cache bool `json:"cache" inlineTitle:"Cache tiles." noTitle:"true" title:"Cache" description:"Enable local cache of map tiles."` }
type Privacy ¶
type Privacy struct { HideTechDetails bool `` /* 131-byte string literal not displayed */ HideGeoPosition bool `` /* 127-byte string literal not displayed */ HideOriginal bool `` /* 168-byte string literal not displayed */ HideBatchDownload bool `` /* 146-byte string literal not displayed */ HideLoginButton bool `` /* 213-byte string literal not displayed */ PublicHelp bool `json:"public_help" inlineTitle:"Publicly show help page." noTitle:"true" description:"Disables auth requirement for '/help'."` }
type Repository ¶
type Values ¶
type Values interface { Security() Security Appearance() Appearance Maps() Maps Visitors() Visitors Storage() Storage Privacy() Privacy ExternalAPI() ExternalAPI CFImageClassifier() cloudflare.ImageWorkerConfig CFImageDescriber() cloudflare.ImageWorkerConfig ORSConfig() ors.Config }
Click to show internal directories.
Click to hide internal directories.