http

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2025 License: AGPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitHandler

func InitHandler(next slog.Handler) *contextHandler

Types

type API

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

func Init

func Init(services ServicesOpt, logger *slog.Logger) API

func (*API) Run

func (a *API) Run()

type ContextKey

type ContextKey string
const RequestID ContextKey = "requestID"

type ServicesOpt

type ServicesOpt struct {
	Album     album.Service
	Artist    artist.Service
	Playlist  playlist.Service
	Streaming streaming.Service
	Search    search.Service
	Playback  playback.Service
}

Jump to

Keyboard shortcuts

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