server

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FuncExecute added in v0.9.0

type FuncExecute func() error

type FuncInterrupt added in v0.9.0

type FuncInterrupt func(error)

type Options

type Options struct {
	DB          *db.DB
	MusicPath   string
	CachePath   string
	ProxyPrefix string
}

type Server

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

func New

func New(opts Options) *Server

func (*Server) StartHTTP added in v0.8.6

func (s *Server) StartHTTP(listenAddr string) (FuncExecute, FuncInterrupt)

func (*Server) StartJukebox added in v0.8.6

func (s *Server) StartJukebox() (FuncExecute, FuncInterrupt)

func (*Server) StartScanTicker added in v0.8.6

func (s *Server) StartScanTicker(dur time.Duration) (FuncExecute, FuncInterrupt)

func (*Server) StartSessionClean added in v0.9.0

func (s *Server) StartSessionClean(dur time.Duration) (FuncExecute, FuncInterrupt)

Directories

Path Synopsis
file generated with embed tool; DO NOT EDIT.
file generated with embed tool; DO NOT EDIT.
Package ctrladmin provides HTTP handlers for admin UI
Package ctrladmin provides HTTP handlers for admin UI
Package ctrlsubsonic provides HTTP handlers for subsonic api
Package ctrlsubsonic provides HTTP handlers for subsonic api
Package db provides database helpers and models
Package db provides database helpers and models

Jump to

Keyboard shortcuts

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