![作ってわかる! はじめてのgRPC](https://cdn-ak-scissors.b.st-hatena.com/image/square/26282c8b5b3c7c99d9fdea320db0853222bb869d/height=288;version=1;width=512/https%3A%2F%2Fres.cloudinary.com%2Fzenn%2Fimage%2Fupload%2Fs--IJDkgM0t--%2Fg_center%252Ch_280%252Cl_fetch%3AaHR0cHM6Ly9zdG9yYWdlLmdvb2dsZWFwaXMuY29tL3plbm4tdXNlci11cGxvYWQvYm9va19jb3Zlci9mYzYxNzZhZGJhLnBuZw%3D%3D%252Cw_200%2Fv1627283836%2Fdefault%2Fog-base-book_yz4z02.jpg)
gRPC toolsRuby’s gRPC tools include the protocol buffer compiler protoc and the special plugin for generating server and client code from the .proto service definitions. For the first part of our quick-start example, we’ve already generated the server and client stubs from helloworld.proto, but you’ll need the tools for the rest of our quick start, as well as later tutorials and your own projects.
goのgRPCで便利ツールを使うで紹介されているGo gRPC MiddlewareとGolang ProtoBuf Validator CompilerでgRPCのvalidationをします。 今回の例では、Userの年齢は負数にならない、電話番号やメールアドレスを正規表現でvalidationするといったことを実装します。 インストール Go gRPC Middlewareのインストール ❯ go get github.com/grpc-ecosystem/go-grpc-middleware Golang ProtoBuf Validator Compilerのインストール ❯ go get github.com/mwitkow/go-proto-validators/protoc-gen-govalidators もとになるサーバとクライアント protobufでgRPCを呼び出
Dev life HTTP/2 Cleartext (H2C) client example in GoLearn what was discovered about the H2C support in golang and how to get the golang standard http2 client to connect to an H2C enabled server. Read more... This blog post was written and self-published by one of our developers. You can also find it on Medium. Since my internet foo failed me, and the only workable example of an H2C client I can fi
syntax = "proto3"; package sample; import "google/api/annotations.proto"; service UserService { rpc ListUsers (ListUserRequest) returns (ListUsersResponses) { option (google.api.http) = { get: "/api/v1/users" }; }; rpc GetUser (GetUserRequest) returns (User) { option (google.api.http) = { get: "/api/v1/users/{encrypted_id}" }; }; rpc CreateUser (CreateUserRequest) returns (User) { option (google.a
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く