package grpc
- Alphabetic
- Public
- Protected
Type Members
- class ApiRequestLogger extends ApiRequestLoggerBase with ServerInterceptor with NamedLogging
Server side interceptor that logs incoming and outgoing traffic.
- class ApiRequestLoggerBase extends NamedLogging
Base class for building gRPC API request loggers.
Base class for building gRPC API request loggers. Used in Canton network to build a client-side gRPC API request logger in addition to the server-side one.
See https://github.com/DACH-NY/the-real-canton-coin/blob/bea9ccff84e72957aa7ac57ae3d1a00bc6d368d0/canton/community/common/src/main/scala/com/digitalasset/canton/networking/grpc/ApiClientRequestLogger.scala#L16
- Annotations
- @SuppressWarnings()
- class CantonCommunityServerInterceptors extends CantonServerInterceptors
- class CantonEnterpriseServerInterceptors extends CantonCommunityServerInterceptors
- trait CantonMutableHandlerRegistry extends AutoCloseable
- trait CantonServerBuilder extends AnyRef
The io.grpc.ServerBuilder is pretty "loose" with its type parameters causing some issues for
scalac
and IntelliJ.The io.grpc.ServerBuilder is pretty "loose" with its type parameters causing some issues for
scalac
and IntelliJ. Here we provide a wrapper hiding these type issues. - trait CantonServerInterceptors extends AnyRef
- trait ClientChannelBuilder extends AnyRef
Construct a GRPC channel to be used by a client within canton.
- trait ClientChannelBuilderFactory extends (NamedLoggerFactory) => ClientChannelBuilder
- class CommunityClientChannelBuilder extends ClientChannelBuilder with NamedLogging with NoTracing
Supports creating GRPC channels but only supports a single host.
Supports creating GRPC channels but only supports a single host. If multiple endpoints are provided a warning will be logged and the first supplied will be used.
- class ConcurrencyLimitMetricsRegistry extends MetricRegistry with NamedLogging with NoTracing
- class EnterpriseClientChannelBuilder extends ClientChannelBuilder with NamedLogging
CantonClientBuilder that supports using round-robin load balanced connections.
- abstract class ErrorLoggingStreamObserver[R] extends StreamObserver[R]
- class ForwardingStreamObserver[A, B] extends StreamObserver[A]
Stream observer that will forward all received values, errors and completions to another observer, mapping values to a different type.
- class GrpcDynamicService extends NamedLogging
Stand up a gRPC service stub which will direct to an instance set dynamically at runtime if available, or return a UNAVAILBLE status if not set.
Stand up a gRPC service stub which will direct to an instance set dynamically at runtime if available, or return a UNAVAILBLE status if not set.
Use setInstance and clear to update the backing service instance.
There will be a performance penalty as the method on the backing service is looked up on each call, however this is likely fine for services that are rarely used like admin commands.
Currently intentionally works with typeless io.grpc.ServiceDescriptor instances to allow use with stubs generated by StaticGrpcServices. Validation could be added to ensure full names of services and methods match.
- sealed trait GrpcError extends AnyRef
- class MultiHostNameResolver extends NameResolver
A NameResolver that will perform DNS lookup for each of the provided hosts and aggregate the results into a single resolution result.
- class MultiHostNameResolverProvider extends NameResolverProvider
- class RecordingStreamObserver[RespT] extends StreamObserver[RespT]
Stream observer that records all incoming events.
Value Members
- object CantonGrpcUtil
- object CantonServerBuilder
- object ClientChannelBuilder
- object CommunityClientChannelBuilder extends ClientChannelBuilderFactory
- object EnterpriseClientChannelBuilder extends ClientChannelBuilderFactory
- object GrpcError
- object MultiHostNameResolverProvider
- object StaticGrpcServices
Stubbed GRPC services to provide simple responses rather than a typical full implementation.