package
0.0.0-20240423143010-f36784700c9a
Repository: https://github.com/streamingfast/dgrpc.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
No description provided by the author
No description provided by the author
OverrideTraceID option can be used to force the generation of a new fresh trace ID for every gRPC request entering the middleware.
SecuredByBuiltInSelfSignedCertificate creates a SecureTLSConfig that uses the built-in hard-coded certificate found in package `insecure` (path `github.com/streamingfast/dgrpc/insecure`).
SecuredByX509KeyPair creates a SecureTLSConfig by loading the provided public/private X509 pair (`.pem` files format).
WithConnectCORS Will apply the CORS policy to your server.
WithConnectInterceptor option can be used to add your own `connectWeb interceptor` after all others defined automatically by the package.
WithConnectPermissiveCORS is for development environments, as it disables any CORS validation.
WithConnectReflection enables gRPC reflection for the given location string.
WithConnectStrictContentType option can be used to enforce valid content-type
**Important** Only taken into consideration by'dgrpc/server/connectrpc#Server' server, ignored by all other server implementations.
WithConnectStrictContentType option can be used to add http hanlders to the connect web server these handlers will be added to the router AFTER the 'connectrpc' handlers, and thus have a lower priority than the 'connectrpc' handlers
**Important** Only taken into consideration by'dgrpc/server/connectrpc#Server' server, ignored by all other server implementations.
Deprecated: Use WithConnectCORS instead.
WithGRPCServerOptions let you configure (or re-configure) the set of gRPC option passed to [grpc.NewServer] call.
WithHealthCheck option can be used to automatically register an health check function that will be used to determine the health of the server.
WithInsecureServer option can be used to flag to use a TSL config using a built-in self-signed certificate when starting the server which making it exchange in encrypted format but cannot be considered a secure setup.
WithLogger option can be used to pass the logger that should be used to log stuff within the various middlewares.
Deprecated: Use WithConnectPermissiveCORS instead.
WithPlainTextServer option can be used to flag to not use a TSL config when starting the server which making it exchanges it's data in **plain-text** format (plain binary is more accurate here).
WithPostStreamInterceptor option can be used to add your own `grpc.StreamServerInterceptor` after all others defined automatically by the package.
WithPostUnaryInterceptor option can be used to add your own `grpc.UnaryServerInterceptor` after all others defined automatically by the package.
Deprecated: Use WithConnectReflection instead.
WithRegisterService option can be used to register the different gRPC services that this server is going to support.
WithSecureServer option can be used to flag to use a secured TSL config when starting the server.
No description provided by the author
# Constants
HealthCheckOverGRPC tells the `StandardServer` to serve the health check over the `grpc.health.v1.HealthServer` GRPC service.
HealthCheckOverHTTP tells the `StandardServer` to serve the health check over an HTTP endpoint (`/healthz` by default).
# Type aliases
No description provided by the author
HealthCheckOver is a bit field used by the `StandardServer` to decide on what to serve the health check when it's defined.
No description provided by the author
Option represents option that can be used when constructing a gRPC server to customize its behavior.