mirror of
https://github.com/navidrome/navidrome.git
synced 2026-04-03 06:41:01 +00:00
106 lines
3.7 KiB
Go
106 lines
3.7 KiB
Go
// Code generated by hostgen. DO NOT EDIT.
|
|
//
|
|
// This file contains stub implementations for non-WASM builds.
|
|
// These stubs allow IDE support and compilation on non-WASM platforms.
|
|
// They panic at runtime since host functions are only available in WASM plugins.
|
|
//
|
|
//go:build !wasip1
|
|
|
|
package ndhost
|
|
|
|
// ArtworkGetArtistUrlRequest is the request type for Artwork.GetArtistUrl.
|
|
type ArtworkGetArtistUrlRequest struct {
|
|
Id string `json:"id"`
|
|
Size int32 `json:"size"`
|
|
}
|
|
|
|
// ArtworkGetArtistUrlResponse is the response type for Artwork.GetArtistUrl.
|
|
type ArtworkGetArtistUrlResponse struct {
|
|
Url string `json:"url,omitempty"`
|
|
Error string `json:"error,omitempty"`
|
|
}
|
|
|
|
// ArtworkGetAlbumUrlRequest is the request type for Artwork.GetAlbumUrl.
|
|
type ArtworkGetAlbumUrlRequest struct {
|
|
Id string `json:"id"`
|
|
Size int32 `json:"size"`
|
|
}
|
|
|
|
// ArtworkGetAlbumUrlResponse is the response type for Artwork.GetAlbumUrl.
|
|
type ArtworkGetAlbumUrlResponse struct {
|
|
Url string `json:"url,omitempty"`
|
|
Error string `json:"error,omitempty"`
|
|
}
|
|
|
|
// ArtworkGetTrackUrlRequest is the request type for Artwork.GetTrackUrl.
|
|
type ArtworkGetTrackUrlRequest struct {
|
|
Id string `json:"id"`
|
|
Size int32 `json:"size"`
|
|
}
|
|
|
|
// ArtworkGetTrackUrlResponse is the response type for Artwork.GetTrackUrl.
|
|
type ArtworkGetTrackUrlResponse struct {
|
|
Url string `json:"url,omitempty"`
|
|
Error string `json:"error,omitempty"`
|
|
}
|
|
|
|
// ArtworkGetPlaylistUrlRequest is the request type for Artwork.GetPlaylistUrl.
|
|
type ArtworkGetPlaylistUrlRequest struct {
|
|
Id string `json:"id"`
|
|
Size int32 `json:"size"`
|
|
}
|
|
|
|
// ArtworkGetPlaylistUrlResponse is the response type for Artwork.GetPlaylistUrl.
|
|
type ArtworkGetPlaylistUrlResponse struct {
|
|
Url string `json:"url,omitempty"`
|
|
Error string `json:"error,omitempty"`
|
|
}
|
|
|
|
// ArtworkGetArtistUrl is a stub that panics on non-WASM platforms.
|
|
// GetArtistUrl generates a public URL for an artist's artwork.
|
|
//
|
|
// Parameters:
|
|
// - id: The artist's unique identifier
|
|
// - size: Desired image size in pixels (0 for original size)
|
|
//
|
|
// Returns the public URL for the artwork, or an error if generation fails.
|
|
func ArtworkGetArtistUrl(id string, size int32) (*ArtworkGetArtistUrlResponse, error) {
|
|
panic("ndhost: ArtworkGetArtistUrl is only available in WASM plugins")
|
|
}
|
|
|
|
// ArtworkGetAlbumUrl is a stub that panics on non-WASM platforms.
|
|
// GetAlbumUrl generates a public URL for an album's artwork.
|
|
//
|
|
// Parameters:
|
|
// - id: The album's unique identifier
|
|
// - size: Desired image size in pixels (0 for original size)
|
|
//
|
|
// Returns the public URL for the artwork, or an error if generation fails.
|
|
func ArtworkGetAlbumUrl(id string, size int32) (*ArtworkGetAlbumUrlResponse, error) {
|
|
panic("ndhost: ArtworkGetAlbumUrl is only available in WASM plugins")
|
|
}
|
|
|
|
// ArtworkGetTrackUrl is a stub that panics on non-WASM platforms.
|
|
// GetTrackUrl generates a public URL for a track's artwork.
|
|
//
|
|
// Parameters:
|
|
// - id: The track's (media file) unique identifier
|
|
// - size: Desired image size in pixels (0 for original size)
|
|
//
|
|
// Returns the public URL for the artwork, or an error if generation fails.
|
|
func ArtworkGetTrackUrl(id string, size int32) (*ArtworkGetTrackUrlResponse, error) {
|
|
panic("ndhost: ArtworkGetTrackUrl is only available in WASM plugins")
|
|
}
|
|
|
|
// ArtworkGetPlaylistUrl is a stub that panics on non-WASM platforms.
|
|
// GetPlaylistUrl generates a public URL for a playlist's artwork.
|
|
//
|
|
// Parameters:
|
|
// - id: The playlist's unique identifier
|
|
// - size: Desired image size in pixels (0 for original size)
|
|
//
|
|
// Returns the public URL for the artwork, or an error if generation fails.
|
|
func ArtworkGetPlaylistUrl(id string, size int32) (*ArtworkGetPlaylistUrlResponse, error) {
|
|
panic("ndhost: ArtworkGetPlaylistUrl is only available in WASM plugins")
|
|
}
|