theme

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileScanner

type FileScanner interface {
	ListThemeFiles(ctx context.Context, themePath string) ([]*dto.ThemeFile, error)
}

func NewFileScanner

func NewFileScanner() FileScanner

type PropertyScanner

type PropertyScanner interface {
	ListAll(ctx context.Context, themeRootPath string) ([]*dto.ThemeProperty, error)
	GetThemeByThemeID(ctx context.Context, themeID string) (*dto.ThemeProperty, error)
	ReadThemeProperty(ctx context.Context, themePath string) (*dto.ThemeProperty, error)
	ReadThemeConfig(ctx context.Context, themePath string) ([]*dto.ThemeConfigGroup, error)
	UnmarshalProperty(ctx context.Context, themePropertyContent []byte) (*dto.ThemeProperty, error)
	UnmarshalConfig(ctx context.Context, themeSettingContent []byte) ([]*dto.ThemeConfigGroup, error)
}

func NewPropertyScanner

func NewPropertyScanner(config *config.Config) PropertyScanner

type ThemeFetcher added in v1.1.2

type ThemeFetcher interface {
	FetchTheme(ctx context.Context, file interface{}) (*dto.ThemeProperty, error)
}

func NewGitThemeFetcher added in v1.1.2

func NewGitThemeFetcher(propertyScanner PropertyScanner) ThemeFetcher

func NewMultipartZipThemeFetcher

func NewMultipartZipThemeFetcher(propertyScanner PropertyScanner) ThemeFetcher

Jump to

Keyboard shortcuts

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