entity

package
v0.0.0-...-92505e6 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: Apache-2.0 Imports: 13 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
}

type Config

type Config struct {
	SourceFs afero.Fs

	Provider config.Provider

	Root
	Caches
	Security
	Module
	Language

	Imaging
	MediaType
}

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) 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) 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

type Language

type Language struct {
	Default     string
	Configs     map[string]valueobject.LanguageConfig
	RootConfigs map[string]valueobject.RootConfig
}

func (Language) GetDefaultDirs

func (l Language) GetDefaultDirs(names []string) ([]module.Component, error)

func (Language) GetOtherLanguagesContentDirs

func (l Language) GetOtherLanguagesContentDirs(name string) ([]module.Component, error)

func (Language) Languages

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

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)

type Module

type Module struct {
	valueobject.ModuleConfig
}

func (Module) ImportPaths

func (m Module) ImportPaths() []string

type Root

type Root struct {
	valueobject.RootConfig
}

func (Root) BaseUrl

func (r Root) BaseUrl() string

func (Root) CompiledTimeout

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

func (Root) DefaultTheme

func (r Root) DefaultTheme() string

type Security

type Security struct {
	valueobject.SecurityConfig
}

Jump to

Keyboard shortcuts

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