server

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: AGPL-3.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NotFoundHandler added in v0.4.0

func NotFoundHandler(c echo.Context) error

NotFoundHandler handles the "not found" situation. It should be a catch-all for all urls.

Types

type Config added in v0.3.0

type Config struct {
	DeezerARL             string
	MusixMatchUserToken   string
	MusixMatchOBUserToken string
	YoutubeDeveloperKey   string
	SpotifyClientID       string
	SpotifyClientSecret   string
	CSNProxyURL           string
	RadioEnabled          bool
}

Config contains the API keys for Server

type Server

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

Server is a MusicStream server

func NewServer

func NewServer(config Config) *Server

NewServer returns a new server

func (*Server) Start added in v0.4.0

func (s *Server) Start(addr string) (err error)

Start starts the server, listening at addr

func (*Server) StartWithTLS added in v0.4.0

func (s *Server) StartWithTLS(addr string) (err error)

StartWithTLS starts the server, listening at addr, also tries to get a cert from LetsEncrypt

Jump to

Keyboard shortcuts

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