srv

package
v0.0.0-...-0ba1a38 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2019 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ClientID   string
	SongServer radio.SongServer
	FCMKey     string
	AuthClient *auth.Client
}

type Srv

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

func New

func New(sdb db.DB, cfg *Config) (*Srv, error)

New returns an initialized server.

func (*Srv) ServeHTTP

func (s *Srv) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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