router

package
v0.0.0-...-7245a53 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Band

func Band(w http.ResponseWriter, r *http.Request)

Band returns information about the specified band http://localhost:80/bands/bandID

func BandMember

func BandMember(w http.ResponseWriter, r *http.Request)

BandMember returns information about the specified band member http://localhost:80/bands/bandID/members/memberID

func BandMemberCurrent

func BandMemberCurrent(w http.ResponseWriter, r *http.Request)

BandMemberCurrent returns if the specified band member was a founder http://localhost:80/bands/bandID/members/memberID/current

func BandMemberFounder

func BandMemberFounder(w http.ResponseWriter, r *http.Request)

BandMemberFounder returns if the specified band member was a founder http://localhost:80/bands/bandID/members/memberID/founder

func BandMemberInstrument

func BandMemberInstrument(w http.ResponseWriter, r *http.Request)

BandMemberInstrument returns the specified instrument played by the specified band member http://localhost:80/bands/bandID/members/memberID/instruments/instruments

func BandMemberInstruments

func BandMemberInstruments(w http.ResponseWriter, r *http.Request)

BandMemberInstruments returns the instruments played by the specified band member http://localhost:80/bands/bandID/members/memberID/instruments

func BandMemberName

func BandMemberName(w http.ResponseWriter, r *http.Request)

BandMemberName returns the name of the specified band member http://localhost:80/bands/bandID/members/memberID/name

func BandMembers

func BandMembers(w http.ResponseWriter, r *http.Request)

BandMembers returns a list of members in the specified band http://localhost:80/bands/bandID/members

func BandName

func BandName(w http.ResponseWriter, r *http.Request)

BandName returns the name of the specified band http://localhost:80/bands/bandID/name

func BandNames

func BandNames(w http.ResponseWriter, r *http.Request)

BandNames returns the list of band names http://localhost:80/bands/names

func BandYear

func BandYear(w http.ResponseWriter, r *http.Request)

BandYear returns the year the specified band formed http://localhost:80/bands/bandID/year

func Bands

func Bands(w http.ResponseWriter, r *http.Request)

Bands returns the list of bands http://localhost:80/bands

func FavIcon

func FavIcon(w http.ResponseWriter, r *http.Request)

FavIcon - serve up the browser icon

func Root

func Root(w http.ResponseWriter, r *http.Request)

Root handles requests to the root page

func ServeHTTP

func ServeHTTP(port string, contentDir string)

ServeHTTP is a blocking call thar starts the web server on the specified port Default URL is http://localhost:80/

Types

This section is empty.

Jump to

Keyboard shortcuts

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