-
Notifications
You must be signed in to change notification settings - Fork 0
gRPC-based architecture #1
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
base: main
Are you sure you want to change the base?
Conversation
- http+redis registerer and proxy client finished - golangci setup
kbats183
left a comment
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.
Amazing
api/proto/mux.proto
Outdated
|
|
||
| // Update is a single update received by the proxy, passed as the actual stringified update object. | ||
| message Update { | ||
| bytes json = 1; |
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.
Why json is bytes? Won't this be a problem for sterilization in other languages?
| package services | ||
|
|
||
| // Allowlist specifies values that are explicitly allowed to be used | ||
| type Allowlist interface { |
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.
Why Allowlist instead of AllowList
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.
Allowlist это одно слово, а не несколько
internal/services/registrar.go
Outdated
| client genproto.MultiplexerServiceClient | ||
| } | ||
|
|
||
| func (r *gRPCRegistrar) tryRegister(ctx context.Context, request *genproto.RegisterRequest, updatech chan tgbotapi.Update) *svcError { |
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.
"updatech" very strage for me, looks like abobich)
May be updateCh or updateChan?
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.
Spravedlivo
| @@ -0,0 +1,151 @@ | |||
| package auth | |||
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.
I not understand what is, may be ok
No description provided.