-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
Интерфейс для авторизации #88
base: master
Are you sure you want to change the base?
Conversation
return | ||
} | ||
|
||
resp, err := http.Post( |
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.
response body must be closed (from bodyclose
)
|
||
// Authenticator interface | ||
type Authenticator interface { | ||
Authenticate(params Params) 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.
Возможно, стоит использовать req *http.Request
вместо params Params
Тогда, например, можно будет установить конкретные куки(получение токена с Desktop в vk_api)
8201eaa
to
fb131a4
Compare
#78
#70
для пула можно использовать такую реализацию