Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRouter ¶
func NewRouter(rh RentalHandler) http.Handler
NewRouter is a construction function for router that handles operations for rentals.
Types ¶
type Logger ¶
type Logger interface { Info(args ...interface{}) Infof(template string, args ...interface{}) Fatalf(template string, args ...interface{}) }
Logger is a contract to a logger implementation.
type RentalHandler ¶
type RentalHandler interface { GetRentalByID(method, path string) func(w http.ResponseWriter, r *http.Request) ListRentals(method, path string) func(w http.ResponseWriter, r *http.Request) }
RentalHandler is a contract to a rental handler.
Click to show internal directories.
Click to hide internal directories.