apis

package
v0.13.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Body

func Body[T types.Body](c echo.Context) (T, error)

func InstallAlbumHandlers

func InstallAlbumHandlers(app core.App, group Group)

func InstallArtistHandlers

func InstallArtistHandlers(app core.App, group Group)

func InstallAuthHandlers

func InstallAuthHandlers(app core.App, group Group)

func InstallHandlers

func InstallHandlers(app core.App, g Group)

func InstallPlaylistHandlers

func InstallPlaylistHandlers(app core.App, group Group)

func InstallQueueHandlers

func InstallQueueHandlers(app core.App, group Group)

func InstallSyncHandlers

func InstallSyncHandlers(app core.App, group Group)

func InstallSystemHandlers

func InstallSystemHandlers(app core.App, group Group)

func InstallTagHandlers

func InstallTagHandlers(app core.App, group Group)

func InstallTrackHandlers

func InstallTrackHandlers(app core.App, group Group)

func RequireSetup

func RequireSetup(app core.App) echo.MiddlewareFunc

func Server

func Server(app core.App) (*echo.Echo, error)

func User

func User(app core.App, c echo.Context) (*database.User, error)

Types

type Group

type Group interface {
	Register(handlers ...Handler)
}

type Handler

type Handler struct {
	Name        string
	Method      string
	Path        string
	DataType    any
	BodyType    types.Body
	HandlerFunc echo.HandlerFunc
	Middlewares []echo.MiddlewareFunc
}

Jump to

Keyboard shortcuts

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