<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>gRPC on Humus</title><link>https://z5labs.github.io/humus/services/grpc/</link><description>Recent content in gRPC on Humus</description><generator>Hugo</generator><language>en-us</language><atom:link href="https://z5labs.github.io/humus/services/grpc/index.xml" rel="self" type="application/rss+xml"/><item><title>Serving gRPC</title><link>https://z5labs.github.io/humus/services/grpc/serving/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://z5labs.github.io/humus/services/grpc/serving/</guid><description>&lt;p&gt;The &lt;a href="https://pkg.go.dev/github.com/z5labs/humus/grpc/grpcserver"&gt;&lt;code&gt;grpcserver&lt;/code&gt;&lt;/a&gt;
package serves gRPC over TLS as a &lt;code&gt;humus.Service&lt;/code&gt;. The end user&amp;rsquo;s &lt;code&gt;Init&lt;/code&gt;
sources its &lt;code&gt;Settings&lt;/code&gt;, builds the Service with &lt;code&gt;grpcserver.NewService&lt;/code&gt;,
registers their generated services on it, as they would on a &lt;code&gt;*grpc.Server&lt;/code&gt;,
and returns it. &lt;code&gt;grpcserver.Main&lt;/code&gt; runs it with the defaults a gRPC server
behind a Kubernetes Service needs: a 5s drain and a 15s grace period. Its test
package,
&lt;a href="https://pkg.go.dev/github.com/z5labs/humus/grpc/grpcserver/grpcservertest"&gt;&lt;code&gt;grpcservertest&lt;/code&gt;&lt;/a&gt;,
runs the same App in a test, on the same defaults, with a client that dials
the test Host over TLS.&lt;/p&gt;</description></item></channel></rss>