Documentation
¶
Index ¶
- Constants
- func CurrentLibrary() (*api.Library, error)
- func CurrentLibraryName() (string, error)
- func CurrentLibraryPath() (string, error)
- func GetEagleThumbnail(cfg *config.NestConfig, itemId string) (string, error)
- func GetEagleThumbnailFullRes(cfg *config.NestConfig, itemId string) (string, error)
- func GetList(cfg *config.NestConfig) (any, error)
- func IsValidEagleItemId(itemId EagleItemId) bool
- func LibrarySwitchSync(baseUrl string, libraryPath string, timeout int) error
- func RegisterGroupRoutes(g *echo.Group)
- func RegisterRootRoutes(n config.NestConfig, server *echo.Echo)
- func ServeThumbnailHandler(cfg *config.NestConfig) echo.HandlerFunc
- func WatchMtime(n config.NestConfig)
- type Data
- type Eagle
- type EagleDataMessage
- type EagleItemId
- type EagleServerInfo
- type ItemIds
- type Library
- type Mtime
- type ThumbnailData
- type UrlBuilder
Constants ¶
View Source
const (
MaxEagleItemIDLength = 15
)
Variables ¶
This section is empty.
Functions ¶
func CurrentLibrary ¶
returns current library path and name
func CurrentLibraryName ¶
func GetEagleThumbnail ¶
func GetEagleThumbnail(cfg *config.NestConfig, itemId string) (string, error)
func GetEagleThumbnailFullRes ¶
func GetEagleThumbnailFullRes(cfg *config.NestConfig, itemId string) (string, error)
on my device thumbnails ONLY end with _thumbnail.png or they do not exist. this returns the full file path to the highest available resolution of the file.
func IsValidEagleItemId ¶
func IsValidEagleItemId(itemId EagleItemId) bool
func LibrarySwitchSync ¶
func RegisterGroupRoutes ¶
func RegisterRootRoutes ¶
func RegisterRootRoutes(n config.NestConfig, server *echo.Echo)
registers routes on the server root (/)
func ServeThumbnailHandler ¶
func ServeThumbnailHandler(cfg *config.NestConfig) echo.HandlerFunc
func WatchMtime ¶
func WatchMtime(n config.NestConfig)
Types ¶
type EagleDataMessage ¶
for endpoints that return a string.
type EagleItemId ¶
type EagleItemId string
func (EagleItemId) IsValid ¶
func (id EagleItemId) IsValid() bool
type EagleServerInfo ¶
type Mtime ¶
func TryIngestMtime ¶
func TryIngestMtime(n config.NestConfig) *Mtime
type ThumbnailData ¶
type UrlBuilder ¶
func Uri ¶
func Uri(cfg *config.NestConfig, path string) *UrlBuilder
func (UrlBuilder) String ¶
func (u UrlBuilder) String() string
Click to show internal directories.
Click to hide internal directories.