Socket
Book a DemoInstallSign in
Socket

grpc_typechecker

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grpc_typechecker

0.1.1
bundlerRubygems
Version published
Maintainers
1
Created
Source

GrpcTypechecker Build Status

A dynamic type checker for gRPC methods. This gem consists of two features:

  • a client interceptor for the run-time type check of gRPC requests, and
  • a monkey patch for type checking gRPC responses during execution.

Installation

Add this line to your application's Gemfile:

gem 'grpc_typechecker'

And then execute:

$ bundle

Or install it yourself as:

$ gem install grpc_typechecker

Usage

If you would like to type check the gRPC requsts, please set the instance of GrpcTypechecker::ClientInterceptor as an interceptor of your gRPC application. For instance:

server = Grpc::Testing::TestService::Stub.new(
  "localhost:12345",
  :this_port_is_insecure,
  interceptors: [
    GrpcTypechecker::ClientInterceptor(service_class: Grpc::Testing::TestService)
  ]
)

On the other hand, the dynamic type checker for gRPC responses will be automatically introduced only by requiring grpc_typechecker

require 'grpc_typechecker'

FAQs

Package last updated on 06 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.