Crate sentinel_tonic
source ·Expand description
This crate provides the sentinel middleware for tonic. The are two kinds of middlewares in tonic.
SentinelInterceptor
based ontonic::service::interceptor::Interceptor
SentinelService
andSentinelLayer
based ontower::Service
Structs
The
tower::Layer
wrapper for SentinelService
.The sentinel middleware service in tower. If you the service request is from [http][] crate,
and you are using nightly toolchain, you don’t need to provide a sentinel resource name extractor.
The middleware will automatically extract the request uri.
Enums
The side where the middleware is deplyed.