Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ArtDownloadTypeFromString = map[string]sum.Int[ArtDownloadType]{ "BOX_ART": ArtDownloadTypes.BOX_ART, "TITLE_SCREEN": ArtDownloadTypes.TITLE_SCREEN, "LOGOS": ArtDownloadTypes.LOGOS, "SCREENSHOTS": ArtDownloadTypes.SCREENSHOTS, }
View Source
var ArtDownloadTypeMapping = map[sum.Int[ArtDownloadType]]string{ ArtDownloadTypes.BOX_ART: "Named_Boxarts", ArtDownloadTypes.TITLE_SCREEN: "Named_Titles", ArtDownloadTypes.LOGOS: "Named_Logos", ArtDownloadTypes.SCREENSHOTS: "Named_Snaps", }
View Source
var ArtDownloadTypes = sum.Int[ArtDownloadType]{}.Sum()
View Source
var HostTypes = sum.Int[HostType]{}.Sum()
Functions ¶
This section is empty.
Types ¶
type ArtDownloadType ¶
type ArtDownloadType struct {
BOX_ART,
TITLE_SCREEN,
LOGOS,
SCREENSHOTS sum.Int[ArtDownloadType]
}
type Item ¶
type Item struct {
DisplayName string `json:"name"`
Filename string `json:"filename"`
Path string `json:"path"`
IsDirectory bool `json:"is_directory"`
IsMultiDiscDirectory bool `json:"-"`
DirectoryFileCount int `json:"-"`
FileSize string `json:"file_size"`
LastModified string `json:"last_modified"`
Tag string `json:"tag"`
RomID string `json:"-"` // For RomM Support
ArtURL string `json:"-"` // For RomM Support
}
func (Item) GetFilename ¶
func (Item) MarshalLogObject ¶
func (i Item) MarshalLogObject(encoder zapcore.ObjectEncoder) error
type Items ¶
type Items []Item
func (Items) MarshalLogArray ¶
func (items Items) MarshalLogArray(enc zapcore.ArrayEncoder) error
type ListSelection ¶
func (ListSelection) Value ¶
func (s ListSelection) Value() interface{}
type RomDirectories ¶ added in v1.2.1
type RomDirectories []RomDirectory
func (RomDirectories) Values ¶ added in v1.2.1
func (r RomDirectories) Values() []string
type RomDirectory ¶
func (RomDirectory) Value ¶ added in v1.2.1
func (r RomDirectory) Value() interface{}
type Section ¶
type Section struct {
Name string `yaml:"section_name"`
SystemTag string `yaml:"system_tag"`
LocalDirectory string `yaml:"local_directory"`
HostSubdirectory string `yaml:"host_subdirectory"`
RomMPlatformID string `yaml:"romm_platform_id"`
CollectionFilePath string `yaml:"collection_file_path"`
}
func (Section) MarshalLogObject ¶
func (s Section) MarshalLogObject(encoder zapcore.ObjectEncoder) error
type Sections ¶
type Sections []Section
func (Sections) MarshalLogArray ¶
func (s Sections) MarshalLogArray(encoder zapcore.ArrayEncoder) error
type TableColumns ¶
type TableColumns struct {
FilenameHeader string `yaml:"filename_header"`
FileSizeHeader string `yaml:"file_size_header"`
DateHeader string `yaml:"date_header"`
}
func (TableColumns) MarshalLogObject ¶
func (c TableColumns) MarshalLogObject(enc zapcore.ObjectEncoder) error
Click to show internal directories.
Click to hide internal directories.