Skip to content
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

implement grpc controller and client #23

Open
wants to merge 26 commits into
base: main
Choose a base branch
from
Open

implement grpc controller and client #23

wants to merge 26 commits into from

Conversation

The-Gleb
Copy link
Owner

No description provided.

@The-Gleb
Copy link
Owner Author

The-Gleb commented Apr 2, 2024

Нужно ли добавить какие-то интерсепторы?


c := metrics.NewMetricServiceClient(conn)

// TODO: interceptors
Copy link

Choose a reason for hiding this comment

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

Этот комментарий либо надо удалить, либо добавить интерсепторы, как планировалось


}

// func (c *grpcClient) SomeInterceptor(
Copy link

Choose a reason for hiding this comment

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

deadcode


resp, err := c.client.UpdateMetricSet(context.Background(), in)
if err != nil {
log.Fatal(err)
Copy link

Choose a reason for hiding this comment

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

Не надо фаталиться из глубины кода


type Config struct {
Address string `json:"address" env:"ADDRESS"`
LogLevel string
Copy link

Choose a reason for hiding this comment

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

Стоит добавить struct tag

Copy link

Choose a reason for hiding this comment

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

Этот файл не стоит пушить в репозиторий, лучше добавь инструкции о том, как генерировать файлы с ключами

server Outdated
Copy link

Choose a reason for hiding this comment

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

Не надо пушить бинарные файлы в репозиторий

Copy link

@s-shpak s-shpak left a comment

Choose a reason for hiding this comment

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

Поправь замечания линтера и все ок

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.

2 participants