music

package
v0.12.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

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 MetadataKey

func MetadataKey(m *model.Metadata) bolt.Key

func NatsAddress added in v0.11.17

func NatsAddress() (host string, port int, err error)

func NatsWebsocketURL added in v0.11.17

func NatsWebsocketURL() string

Types

type Catalog

type Catalog struct {
	// contains filtered or unexported fields
}

func OpenCatalog

func OpenCatalog(path string, readonly ...bool) (c *Catalog, err error)

func (*Catalog) AddMetaData

func (c *Catalog) AddMetaData(md *model.Metadata) (err error)

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) Cleanup

func (c *Catalog) Cleanup() (err error)

func (*Catalog) CloseCatalog

func (c *Catalog) CloseCatalog()

func (*Catalog) CoverArt

func (c *Catalog) CoverArt(id uuid.UUID) (pngData []byte, err error)

func (*Catalog) DB added in v0.12.1

func (c *Catalog) DB() *bolt.Bolt

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 (c *Catalog) ReleaseDiscTrackMetadata(key string) (md *model.Metadata, err error)

func (*Catalog) Search

func (c *Catalog) Search(_ string, request *model.SearchRequest) (response *model.SearchResponse, err error)

func (*Catalog) SetCoverArt

func (c *Catalog) SetCoverArt(uu uuid.UUID, img image.Image) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL