Skip to content

Conversation

@h4rikris
Copy link
Member

@h4rikris h4rikris commented Aug 25, 2021

  • Add grpc APIs
  • Fix existing tests
  • Add tests for grpc handlers
  • add validation for payload
  • Update docs [Swagger update is done, remaining will take up as a part of release process]

@ravisuhag ravisuhag changed the title Support gRPC and http feat: support gRPC and http apis Sep 1, 2021
@ravisuhag ravisuhag linked an issue Sep 3, 2021 that may be closed by this pull request
@h4rikris h4rikris force-pushed the grpc branch 2 times, most recently from d09894a to 467b5a8 Compare September 7, 2021 08:51
@ravisuhag ravisuhag merged commit 90a5f25 into master Sep 7, 2021
@ravisuhag ravisuhag deleted the grpc branch September 7, 2021 17:56
Comment on lines +29 to +30
MaxRecvMsgSizeInMB int `default:"10"`
MaxSendMsgSizeInMB int `default:"10"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was wondering what if we just set it really big value and forget about it? I see very little value in making this configurable, to be honest?

var Logger *zap.Logger

func init() {
l, err := zap.NewProduction()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have not used zap so correct me if I am wrong, don't we need to initialize it with config level? Or don't we have configurable log levels like debug/warn/etc?
Also, any specific reason we are creating a package level logger object?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ya just wanted basic logger. Later will integrate with config object to control log levels.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will move to the salt logger soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move stencil to GRPC apis

5 participants