Skip to content

interceptor_hook_server

Module: firma::interceptor::v1::interceptor_hook_server

Section titled “Module: firma::interceptor::v1::interceptor_hook_server”

Structs

Traits

  • InterceptorHook - Generated trait containing gRPC methods that should be implemented for use with InterceptorHookServer.

Constants


firma_grpc_interceptor_proto::firma::interceptor::v1::interceptor_hook_server::InterceptorHook

Section titled “firma_grpc_interceptor_proto::firma::interceptor::v1::interceptor_hook_server::InterceptorHook”

Trait

Generated trait containing gRPC methods that should be implemented for use with InterceptorHookServer.

Methods:

  • intercept

firma_grpc_interceptor_proto::firma::interceptor::v1::interceptor_hook_server::InterceptorHookServer

Section titled “firma_grpc_interceptor_proto::firma::interceptor::v1::interceptor_hook_server::InterceptorHookServer”

Struct

InterceptorHook is the agent-facing gRPC service exposed by the Sidecar. The agent calls Intercept for every outbound action; the Sidecar feeds the request into the enforcement pipeline and returns the result.

Generic Parameters:

  • T

Methods:

  • fn new(inner: T) -> Self
  • fn from_arc(inner: Arc<T>) -> Self
  • fn with_interceptor<F>(inner: T, interceptor: F) -> InterceptedService<Self, F>
  • fn accept_compressed(self: Self, encoding: CompressionEncoding) -> Self - Enable decompressing requests with the given encoding.
  • fn send_compressed(self: Self, encoding: CompressionEncoding) -> Self - Compress responses with the given encoding, if the client supports it.
  • fn max_decoding_message_size(self: Self, limit: usize) -> Self - Limits the maximum size of a decoded message.
  • fn max_encoding_message_size(self: Self, limit: usize) -> Self - Limits the maximum size of an encoded message.

Traits: NamedService

Trait Implementations:

  • Clone
    • fn clone(self: &Self) -> Self
  • Service
    • fn poll_ready(self: & mut Self, _cx: & mut Context) -> Poll<std::result::Result<(), <Self as >::Error>>
    • fn call(self: & mut Self, req: http::Request<B>) -> <Self as >::Future
  • Debug
    • fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result

firma_grpc_interceptor_proto::firma::interceptor::v1::interceptor_hook_server::SERVICE_NAME

Section titled “firma_grpc_interceptor_proto::firma::interceptor::v1::interceptor_hook_server::SERVICE_NAME”

Constant: &str

Generated gRPC service name