Esempio n. 1
0
func ProvideSession(w decorator.WebHandler) decorator.WebHandler {
	return func(p decorator.Params) (err error) {
		fmt.Println("Session")
		return w.Handle(p)
	}
}
Esempio n. 2
0
func ProvideUserProfile(w decorator.WebHandler) decorator.WebHandler {
	return func(p decorator.Params) (err error) {
		fmt.Println("UserProfile")
		return w.Handle(p)
	}
}
Esempio n. 3
0
func ProvideErrorHandling(w decorator.WebHandler) decorator.WebHandler {
	return func(p decorator.Params) (err error) {
		fmt.Println("ErrorHandling")
		return w.Handle(p)
	}
}