handlers

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultArtistPictureName = "default/default_artist.png"
	DefaultAlbumCoverArtName = "default/default_album.png"
	DefaultTrackCoverArtName = "default/default_album.png"
)

Variables

This section is empty.

Functions

func Body added in v0.10.0

func Body[T any](c echo.Context, schema jio.Schema) (T, error)

TODO(patrik): Move

func ConvertAlbumCoverURL added in v0.9.0

func ConvertAlbumCoverURL(c echo.Context, val sql.NullString) string

func ConvertArtistPictureURL added in v0.9.0

func ConvertArtistPictureURL(c echo.Context, val sql.NullString) string

func ConvertImageURL added in v0.9.0

func ConvertImageURL(c echo.Context, val sql.NullString, def string) string

func ConvertTrackCoverURL added in v0.9.0

func ConvertTrackCoverURL(c echo.Context, val sql.NullString) string

func ConvertURL

func ConvertURL(c echo.Context, path string) string

func Decode added in v0.10.0

func Decode(input interface{}, output interface{}) error

TODO(patrik): Move

func InitializeConfig added in v0.10.0

func InitializeConfig(db *database.Database) error

func IsSetup added in v0.10.0

func IsSetup() bool

TODO(patrik): Should this be here?

Types

type Handlers added in v0.9.0

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

func New

func New(db *database.Database, libraryDir string, workDir types.WorkDir) *Handlers

func (*Handlers) HandleDeletePlaylistItemsById added in v0.10.0

func (h *Handlers) HandleDeletePlaylistItemsById(c echo.Context) error

func (*Handlers) HandleGetAlbumById added in v0.9.0

func (h *Handlers) HandleGetAlbumById(c echo.Context) error

func (*Handlers) HandleGetAlbumTracksById added in v0.9.0

func (h *Handlers) HandleGetAlbumTracksById(c echo.Context) error

func (*Handlers) HandleGetAlbums added in v0.9.0

func (h *Handlers) HandleGetAlbums(c echo.Context) error

func (*Handlers) HandleGetArtistAlbumsById added in v0.9.0

func (h *Handlers) HandleGetArtistAlbumsById(c echo.Context) error

func (*Handlers) HandleGetArtistById added in v0.9.0

func (h *Handlers) HandleGetArtistById(c echo.Context) error

func (*Handlers) HandleGetArtists added in v0.9.0

func (h *Handlers) HandleGetArtists(c echo.Context) error

func (*Handlers) HandleGetMe added in v0.10.0

func (h *Handlers) HandleGetMe(c echo.Context) error

func (*Handlers) HandleGetPlaylistById added in v0.10.0

func (h *Handlers) HandleGetPlaylistById(c echo.Context) error

func (*Handlers) HandleGetPlaylists added in v0.10.0

func (h *Handlers) HandleGetPlaylists(c echo.Context) error

func (*Handlers) HandleGetSync added in v0.9.0

func (h *Handlers) HandleGetSync(c echo.Context) error

func (*Handlers) HandleGetSystemInfo added in v0.10.0

func (h *Handlers) HandleGetSystemInfo(c echo.Context) error

func (*Handlers) HandleGetTags added in v0.9.0

func (h *Handlers) HandleGetTags(c echo.Context) error

func (*Handlers) HandleGetTrackById added in v0.9.0

func (h *Handlers) HandleGetTrackById(c echo.Context) error

func (*Handlers) HandleGetTracks added in v0.9.0

func (h *Handlers) HandleGetTracks(c echo.Context) error

func (*Handlers) HandlePostPlaylist added in v0.10.0

func (h *Handlers) HandlePostPlaylist(c echo.Context) error

func (*Handlers) HandlePostPlaylistItemsById added in v0.10.0

func (h *Handlers) HandlePostPlaylistItemsById(c echo.Context) error

func (*Handlers) HandlePostPlaylistsItemsMoveById added in v0.10.0

func (h *Handlers) HandlePostPlaylistsItemsMoveById(c echo.Context) error

func (*Handlers) HandlePostQueue added in v0.9.0

func (h *Handlers) HandlePostQueue(c echo.Context) error

func (*Handlers) HandlePostSignin added in v0.10.0

func (h *Handlers) HandlePostSignin(c echo.Context) error

func (*Handlers) HandlePostSignup added in v0.10.0

func (h *Handlers) HandlePostSignup(c echo.Context) error

TODO(patrik): Check confirmPassword

func (*Handlers) HandlePostSync added in v0.9.0

func (h *Handlers) HandlePostSync(c echo.Context) error

func (*Handlers) HandlePostSystemExport added in v0.12.0

func (h *Handlers) HandlePostSystemExport(c echo.Context) error

func (*Handlers) HandlePostSystemImport added in v0.12.0

func (h *Handlers) HandlePostSystemImport(c echo.Context) error

func (*Handlers) HandlePostSystemSetup added in v0.10.0

func (h *Handlers) HandlePostSystemSetup(c echo.Context) error

func (*Handlers) InstallAlbumHandlers added in v0.9.0

func (h *Handlers) InstallAlbumHandlers(group *echo.Group)

func (*Handlers) InstallArtistHandlers added in v0.9.0

func (h *Handlers) InstallArtistHandlers(group *echo.Group)

func (*Handlers) InstallAuthHandlers added in v0.10.0

func (h *Handlers) InstallAuthHandlers(group *echo.Group)

func (*Handlers) InstallPlaylistHandlers added in v0.10.0

func (h *Handlers) InstallPlaylistHandlers(group *echo.Group)

func (*Handlers) InstallQueueHandlers added in v0.9.0

func (h *Handlers) InstallQueueHandlers(group *echo.Group)

func (*Handlers) InstallSyncHandlers added in v0.9.0

func (h *Handlers) InstallSyncHandlers(group *echo.Group)

func (*Handlers) InstallSystemHandlers added in v0.10.0

func (h *Handlers) InstallSystemHandlers(group *echo.Group)

func (*Handlers) InstallTagHandlers added in v0.9.0

func (h *Handlers) InstallTagHandlers(group *echo.Group)

func (*Handlers) InstallTrackHandlers added in v0.9.0

func (h *Handlers) InstallTrackHandlers(group *echo.Group)

func (*Handlers) User added in v0.10.0

func (h *Handlers) User(c echo.Context) (*database.User, error)

Jump to

Keyboard shortcuts

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