Go to file
Adphi e70369a902
logger: add WithContext support
Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
2023-02-21 19:53:25 +01:00
certs remove transport draft, add grpc web and gateway support 2021-09-18 01:44:08 +02:00
client interceptors: add ban 2022-09-27 17:06:18 +02:00
codec codec: add codec to support both vtproto and google.golang.org/protobuf and probably gogoproto 2022-03-17 15:22:31 +01:00
config add metadata interceptors, auth client interceptors 2022-03-11 12:33:18 +01:00
errors errors: add missing canceled 2022-06-24 11:47:09 +02:00
example ban: more defaults options, simpler callback 2022-12-07 14:09:36 +01:00
google/api remove transport draft, add grpc web and gateway support 2021-09-18 01:44:08 +02:00
interceptors ban: more defaults options, simpler callback 2022-12-07 14:09:36 +01:00
logger logger: add WithContext support 2023-02-21 19:53:25 +01:00
react react: use fs.FS instead of embed.FS 2023-01-20 14:33:52 +01:00
registry logger: add FromLogrus 2022-07-02 12:39:52 +02:00
resolver deps: upgrade grpc 2023-02-21 14:47:43 +01:00
service interceptors: add ban 2022-09-27 17:06:18 +02:00
signals add metrics, tracing, validation interceptors, add options: WithInterceptors, With{Client,Server}Interceptors 2021-11-21 14:58:49 +01:00
transport add missing transport folder 2021-09-30 12:00:30 +02:00
utils add registry base interface, mdns, noop implementations, add resolver, client 2020-11-15 15:54:46 +01:00
.gitignore interceptors: add ban 2022-09-27 17:06:18 +02:00
go.mod deps: upgrade grpc 2023-02-21 14:47:43 +01:00
go.sum deps: upgrade grpc 2023-02-21 14:47:43 +01:00
LICENSE Add LICENSE 2020-11-06 17:32:45 +00:00
Makefile remove transport draft, add grpc web and gateway support 2021-09-18 01:44:08 +02:00
README.md interceptors: add ban 2022-09-27 17:06:18 +02:00
tools.go remove transport draft, add grpc web and gateway support 2021-09-18 01:44:08 +02:00

gRPC

A utility module, largely taken from the go-micro patterns (and a good amount of code too...) with pure gRPC ecosystem modules.

Principles:

  • Pluggable
  • No singleton

Features:

  • simple configuration with options
  • simple TLS configuration
  • TLS auth
  • client connection pool
  • registry / resolver resolution
    • mdns
    • kubernetes
  • default interceptors implementation:
    • context request id
    • defaulter
    • validation
    • health
    • context logger
    • sentry
    • rate-limiting
    • ban
    • auth claim in context
    • recovery (server side only)
    • tracing (open-tracing)
    • metrics (prometheus)
    • retries
    • context DB / transaction
    • ...
  • grpc web / api gateway with middleware:
    • auth
    • cors
    • logging
    • tracing
    • metrics
  • broker, based on nats-streaming

Used modules: