Documentation
¶
Overview ¶
Package multi joins several servers' libraries into one. Items are tagged with their server and their IDs are qualified as "server:id", so a later call routes back to the server that produced them. Search asks every server; browsing uses the current one.
Index ¶
- type Library
- func (m *Library) Add(s Server, lib library.Library)
- func (m *Library) AlbumTracks(ctx context.Context, albumID string) ([]library.Track, error)
- func (m *Library) ArtistAlbums(ctx context.Context, artistID string) ([]library.Album, error)
- func (m *Library) ArtistIndex(ctx context.Context) ([]library.Letter, error)
- func (m *Library) Artists(ctx context.Context, offset, limit int) ([]library.Artist, int, error)
- func (m *Library) Current() Server
- func (m *Library) RecentAlbums(ctx context.Context, offset, limit int) ([]library.Album, error)
- func (m *Library) Search(ctx context.Context, q string) (library.SearchResult, error)
- func (m *Library) Servers() []Server
- func (m *Library) SetCurrent(id string) bool
- func (m *Library) Stream(ctx context.Context, t library.Track) (library.Stream, error)
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Library ¶
type Library struct {
// contains filtered or unexported fields
}