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