entity

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Caches

type Caches struct {
	valueobject.CachesConfig
}

func (Caches) CachesIterator

func (c Caches) CachesIterator(cb func(cacheKey string, isResourceDir bool, dir string, age time.Duration))

type Config

func (*Config) AbsoluteResourcesDir

func (c *Config) AbsoluteResourcesDir() string

func (*Config) Fs

func (c *Config) Fs() afero.Fs

func (*Config) GetImports

func (c *Config) GetImports(moduleDir string) ([]string, error)

func (*Config) PublishDir

func (c *Config) PublishDir() string

func (*Config) ResourceDir

func (c *Config) ResourceDir() string

func (*Config) Theme

func (c *Config) Theme() string

func (*Config) ThemesDir

func (c *Config) ThemesDir() string

func (*Config) WorkingDir

func (c *Config) WorkingDir() string

type Imaging

type Imaging struct {
	valueobject.ImagingConfigInternal
}

func (Imaging) Anchor

func (i Imaging) Anchor() gift.Anchor

func (Imaging) AnchorStr

func (i Imaging) AnchorStr() string

func (Imaging) BgColor

func (i Imaging) BgColor() color.Color

func (Imaging) BgColorStr

func (i Imaging) BgColorStr() string

func (Imaging) ExifDecoder

func (i Imaging) ExifDecoder() (*exif.Decoder, error)

func (Imaging) ImageHint

func (i Imaging) ImageHint() webpoptions.EncodingPreset

func (Imaging) ImageQuality

func (i Imaging) ImageQuality() int

func (Imaging) Resampling

func (i Imaging) Resampling() gift.Resampling

func (Imaging) ResamplingStr

func (i Imaging) ResamplingStr() string

func (Imaging) SourceHash

func (i Imaging) SourceHash() string

type Language

type Language struct {
	Default     string
	Configs     map[string]valueobject.LanguageConfig
	RootConfigs map[string]valueobject.RootConfig
	// contains filtered or unexported fields
}

func (*Language) DefaultLanguage

func (l *Language) DefaultLanguage() string

func (*Language) GetLanguageFolder

func (l *Language) GetLanguageFolder(lang string) string

func (*Language) GetLanguageIndex

func (l *Language) GetLanguageIndex(lang string) (int, error)

func (*Language) GetLanguageName

func (l *Language) GetLanguageName(lang string) string

func (*Language) GetRelDir

func (l *Language) GetRelDir(name string, langKey string) (dir string, err error)

func (*Language) IsLanguageValid

func (l *Language) IsLanguageValid(lang string) bool

func (*Language) LanguageKeys

func (l *Language) LanguageKeys() []string

func (*Language) Languages

func (l *Language) Languages() []valueobject.LanguageConfig

func (*Language) OtherLanguageKeys

func (l *Language) OtherLanguageKeys() []string

func (*Language) SetIndices

func (l *Language) SetIndices()

func (*Language) Validate

func (l *Language) Validate() error

type MediaType

type MediaType struct {
	valueobject.MediaTypeConfig
}

func (MediaType) LookByType

func (t MediaType) LookByType(mediaType string) (media.Type, bool)

func (MediaType) LookFirstBySuffix

func (t MediaType) LookFirstBySuffix(suffix string) (media.Type, media.SuffixInfo, bool)

func (MediaType) MediaTypes

func (t MediaType) MediaTypes() media.Types
type Menu struct {
	Menus map[string][]valueobject.MenuConfig
}
func (m Menu) AllMenus() map[string][]valueobject.MenuConfig

type MinifyC

type MinifyC struct {
	valueobject.MinifyConfig
}

func (MinifyC) GetMinifier

func (m MinifyC) GetMinifier(s string) minify.Minifier

func (MinifyC) IsMinifyPublish

func (m MinifyC) IsMinifyPublish() bool

func (MinifyC) Minifiers

func (m MinifyC) Minifiers(mediaTypes media.Types, cb func(media.Type, minify.Minifier))

type Module

type Module struct {
	valueobject.ModuleConfig
}

func (Module) ImportPaths

func (m Module) ImportPaths() []string

type OutputFormats

type OutputFormats struct {
	valueobject.OutputFormatsConfig
}

func (OutputFormats) AllOutputFormats

func (of OutputFormats) AllOutputFormats() output.Formats

type Root

type Root struct {
	valueobject.RootConfig
	RootParams map[string]any
}

func (Root) BaseUrl

func (r Root) BaseUrl() string

func (Root) CompiledTimeout

func (r Root) CompiledTimeout() (time.Duration, error)

func (Root) ConfigParams

func (r Root) ConfigParams() map[string]any

func (Root) DefaultTheme

func (r Root) DefaultTheme() string

func (Root) SiteTitle

func (r Root) SiteTitle() string

type Security

type Security struct {
	valueobject.SecurityConfig
}

func (Security) CheckAllowedGetEnv

func (s Security) CheckAllowedGetEnv(name string) error

func (Security) ExecAuth

func (s Security) ExecAuth() hexec.ExecAuth

type Service

type Service struct {
	valueobject.ServiceConfig
}

func (Service) DisqusShortname

func (s Service) DisqusShortname() string

func (Service) GoogleAnalyticsID

func (s Service) GoogleAnalyticsID() string

func (Service) IsDisqusEnabled

func (s Service) IsDisqusEnabled() bool

func (Service) IsGoogleAnalyticsEnabled

func (s Service) IsGoogleAnalyticsEnabled() bool

func (Service) IsGoogleAnalyticsRespectDoNotTrack

func (s Service) IsGoogleAnalyticsRespectDoNotTrack() bool

type Taxonomy

type Taxonomy struct {
	Taxonomies map[string]string
	// contains filtered or unexported fields
}

func (*Taxonomy) SetupViews

func (t *Taxonomy) SetupViews()

func (*Taxonomy) Views

func (t *Taxonomy) Views() []valueobject.ViewName

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL