Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func WriteAfterScanMetrics ¶ added in v0.49.0
func WriteInitialMetrics ¶ added in v0.49.0
func WriteInitialMetrics()
Types ¶
type Archiver ¶
type Archiver interface { ZipAlbum(ctx context.Context, id string, format string, bitrate int, w io.Writer) error ZipArtist(ctx context.Context, id string, format string, bitrate int, w io.Writer) error ZipPlaylist(ctx context.Context, id string, format string, bitrate int, w io.Writer) error }
func NewArchiver ¶
func NewArchiver(ms MediaStreamer, ds model.DataStore, shares Share) Archiver
type ExternalMetadata ¶ added in v0.41.0
type ExternalMetadata interface { UpdateAlbumInfo(ctx context.Context, id string) (*model.Album, error) UpdateArtistInfo(ctx context.Context, id string, count int, includeNotPresent bool) (*model.Artist, error) SimilarSongs(ctx context.Context, id string, count int) (model.MediaFiles, error) TopSongs(ctx context.Context, artist string, count int) (model.MediaFiles, error) ArtistImage(ctx context.Context, id string) (*url.URL, error) AlbumImage(ctx context.Context, id string) (*url.URL, error) }
func NewExternalMetadata ¶ added in v0.41.0
func NewExternalMetadata(ds model.DataStore, agents *agents.Agents) ExternalMetadata
type MediaStreamer ¶
type MediaStreamer interface { NewStream(ctx context.Context, id string, reqFormat string, reqBitRate int, offset int) (*Stream, error) DoStream(ctx context.Context, mf *model.MediaFile, reqFormat string, reqBitRate int, reqOffset int) (*Stream, error) }
func NewMediaStreamer ¶
func NewMediaStreamer(ds model.DataStore, t ffmpeg.FFmpeg, cache TranscodingCache) MediaStreamer
type Players ¶
type Players interface { Get(ctx context.Context, playerId string) (*model.Player, error) Register(ctx context.Context, id, client, typ, ip string) (*model.Player, *model.Transcoding, error) }
func NewPlayers ¶
type Playlists ¶ added in v0.47.0
type Playlists interface { ImportFile(ctx context.Context, dir string, fname string) (*model.Playlist, error) Update(ctx context.Context, playlistID string, name *string, comment *string, public *bool, idsToAdd []string, idxToRemove []int) error ImportM3U(ctx context.Context, reader io.Reader) (*model.Playlist, error) }
func NewPlaylists ¶ added in v0.47.0
type Stream ¶
type Stream struct { io.ReadCloser io.Seeker // contains filtered or unexported fields }
func (*Stream) ContentType ¶
func (*Stream) EstimatedContentLength ¶
type TranscodingCache ¶
func GetTranscodingCache ¶
func GetTranscodingCache() TranscodingCache
func NewTranscodingCache ¶ added in v0.50.0
func NewTranscodingCache() TranscodingCache
Source Files ¶
Click to show internal directories.
Click to hide internal directories.