app

package
v0.0.0-...-9b4a50d Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2017 License: MIT Imports: 20 Imported by: 0

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

Jump to

Keyboard shortcuts

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