Skip to content

Commit 8326629

Browse files
committed
improve middleware.go docs
1 parent 389851e commit 8326629

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

middleware.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import (
66
"github.com/golang/glog"
77
)
88

9+
// Handler returns a standard http.HandlerFunc, which will check the authenticated status (redirect user go login if needed)
10+
// If the user pass the authenticated check, it will call the h's ServeHTTP method
911
func (c *Client) Handler(h http.Handler) http.Handler {
1012
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
1113
if glog.V(2) {

0 commit comments

Comments
 (0)