Documentation ¶
Index ¶
- Constants
- func MetadataKey(m *model.Metadata) bolt.Key
- func NatsAddress() (host string, port int, err error)
- func NatsWebsocketURL() string
- type Catalog
- func (c *Catalog) AddMetaData(md *model.Metadata) (err error)
- func (c *Catalog) Album(_ string, request *model.AlbumRequest) (response *model.AlbumResponse, err error)
- func (c *Catalog) Albums(_ string, _ *model.AlbumsRequest) (response *model.AlbumsResponse, err error)
- func (c *Catalog) Cleanup() (err error)
- func (c *Catalog) CloseCatalog()
- func (c *Catalog) CoverArt(id uuid.UUID) (pngData []byte, err error)
- func (c *Catalog) DB() *bolt.Bolt
- func (c *Catalog) Ping(clientId string, request *model.PingRequest) (response *model.PingResponse, err error)
- func (c *Catalog) PlayLists(_ string, _ *model.PlayListsRequest) (response *model.PlayListsResponse, err error)
- func (c *Catalog) RandomTrack(_ string, _ *model.RandomTrackRequest) (response *model.RandomTrackResponse, err error)
- func (c *Catalog) ReleaseDiscTrackMetadata(key string) (md *model.Metadata, err error)
- func (c *Catalog) Search(_ string, request *model.SearchRequest) (response *model.SearchResponse, err error)
- func (c *Catalog) SetCoverArt(uu uuid.UUID, img image.Image) error
Constants ¶
View Source
const NatsPortOffset = 10
NatsPortOffset is the offset from the http port defined by env ADDRESS or PORT
View Source
const NatsWebsocketPortOffset = 10
NatsWebsocketPortOffset is the offset from the nats port to the websocket port
View Source
const ReleaseCoverArt = bolt.Key("release_coverArt")
ReleaseCoverArt bucket stores the cover art image keyed by release group id or and empty byte slice if none found.
View Source
const ReleaseDiscTrack = bolt.Key("release_disc_track")
ReleaseDiscTrack bucket stores model.Metadata keyed by releaseGroupId, disc number (0 pad 2), and track number (0 pad 3).
ex. 81d27c75-9680-3b3f-acc3-a6e52b864c84_01_001
View Source
const Repo = "https://github.com/mlctrez/goapp-audioplayer"
View Source
const UserAgent = "goapp-audioplayer (" + Repo + ")"
Variables ¶
This section is empty.
Functions ¶
func NatsAddress ¶ added in v0.11.17
func NatsWebsocketURL ¶ added in v0.11.17
func NatsWebsocketURL() string
Types ¶
type Catalog ¶
type Catalog struct {
// contains filtered or unexported fields
}
func (*Catalog) Album ¶
func (c *Catalog) Album(_ string, request *model.AlbumRequest) (response *model.AlbumResponse, err error)
func (*Catalog) Albums ¶
func (c *Catalog) Albums(_ string, _ *model.AlbumsRequest) (response *model.AlbumsResponse, err error)
func (*Catalog) CloseCatalog ¶
func (c *Catalog) CloseCatalog()
func (*Catalog) Ping ¶ added in v0.11.11
func (c *Catalog) Ping(clientId string, request *model.PingRequest) (response *model.PingResponse, err error)
func (*Catalog) PlayLists ¶
func (c *Catalog) PlayLists(_ string, _ *model.PlayListsRequest) (response *model.PlayListsResponse, err error)
func (*Catalog) RandomTrack ¶ added in v0.11.11
func (c *Catalog) RandomTrack(_ string, _ *model.RandomTrackRequest) (response *model.RandomTrackResponse, err error)
func (*Catalog) ReleaseDiscTrackMetadata ¶
func (*Catalog) Search ¶
func (c *Catalog) Search(_ string, request *model.SearchRequest) (response *model.SearchResponse, err error)
Click to show internal directories.
Click to hide internal directories.