# README
Go gRPC Middleware
gRPC Go Middleware: interceptors, helpers, utilities.
Table of Contents
Prerequisites
Go >= 1.19
Install
go get github.com/nhatthm/go-grpc-middleware
Interceptors
Ctxd Logger
See bool64/ctxd
- Server middlewares
ctxd.UnaryServerInterceptor
ctxd.StreamServerInterceptor
- Client middlewares
ctxd.UnaryClientInterceptor
ctxd.StreamClientInterceptor
Timeout
There are 4 dial options for gRPC client:
- Sleep for a duration before doing the job.
timeout.WithStreamClientSleepInterceptor
timeout.WithUnaryClientSleepInterceptor
- Automatically creates a new context with given duration if there is none in the current context.
timeout.WithStreamClientTimeoutInterceptor
timeout.WithUnaryClientTimeoutInterceptor
Donation
If this project help you reduce time to develop, you can give me a cup of coffee :)
Paypal donation
or scan this
