presenter

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EntryFolder        string = "folder"
	EntryImageFile     string = "image"
	EntryVideoFile     string = "video"
	EntryMusicFile     string = "music"
	EntryDiscImageFile string = "disc_image"
	EntryTextFile      string = "text"
	EntryPDFFile       string = "pdf"
	EntryUnknown       string = "unknown"
)

Variables

This section is empty.

Functions

func EntryTypeAndIconDetailsFromExtension added in v1.1.0

func EntryTypeAndIconDetailsFromExtension(extension string) (string, string, string)

Types

type Entry

type Entry struct {
	Type         string
	Label        string
	Path         string
	MaterialIcon string
	IconClass    string
	Size         string
	Linkable     bool
	LinkClass    string
}

func EntryForParentFolder

func EntryForParentFolder(entryPath string) Entry

func EntryFromFileInfo

func EntryFromFileInfo(fileInfo os.FileInfo, entryPath string) Entry

type List

type List struct {
	CurrentPath    string
	PathSegments   []PathSegment
	Entries        []Entry
	ViewType       config.ViewType
	ShowGridButton bool
	ShowListButton bool
}

type PathSegment

type PathSegment struct {
	Label string
	Path  string
}

func PathSegmentsFromPath

func PathSegmentsFromPath(path string) []PathSegment

Jump to

Keyboard shortcuts

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