-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
minor improvements #11
Conversation
@@ -26,7 +26,7 @@ func errHandler(r *http.Request, w http.ResponseWriter, err error) { | |||
w.Write(respBody) | |||
} | |||
|
|||
type KeyFunc func(*http.Request) string | |||
type AccessKeyFunc func(*http.Request) string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets use clear naming
@@ -10,21 +10,34 @@ import ( | |||
"github.com/0xsequence/authcontrol/proto" | |||
) | |||
|
|||
// Options for the authcontrol middleware handlers Session and AccessControl. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comments help make types clear.
middleware.go
Outdated
ErrHandler ErrHandler | ||
} | ||
|
||
func (o *Options) ApplyDefaults() error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
less redundant code in other places..
No description provided.