Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // StaticDir is the directory containing static assets. StaticDir = filepath.Join(defaultBase("github.com/pieterlouw/carservice/app"), "static") )
View Source
var ( // TemplateDir is the directory containing the html/template template files. TemplateDir = filepath.Join(defaultBase("github.com/pieterlouw/carservice/app"), "templates") )
Functions ¶
func Handler ¶
func Handler(b BookingServer) *http.ServeMux
Handler returns a ServeMux with all handlers related to the webapp
Types ¶
type BookingServer ¶
type BookingServer struct { BookingRepository *datastore.BookingStore NewBookingDispatcher chan carservice.Booking context.Context //embedded }
BookingServer is a web server for car service bookings
Click to show internal directories.
Click to hide internal directories.