Class: GrpcServer

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/grpc_server.rb,
lib/grpc_server/engine.rb,
lib/grpc_server/version.rb

Defined Under Namespace

Classes: Engine

Constant Summary collapse

VERSION =
"0.0.1"

Instance Method Summary collapse

Constructor Details

#initialize(**kwargs) ⇒ GrpcServer

Returns a new instance of GrpcServer.

Parameters:

  • host (String)
  • port (Integer)
  • threads (Integer)

    the size of the thread pool the server uses to run its threads. No more concurrent requests can be made than the size of the thread pool

  • env (String)
  • interceptors (Array<GRPC::ServerInterceptor>)

    An array of GRPC::ServerInterceptor objects that will be used for intercepting server handlers to provide extra functionality.

  • signals (Array<String>)

    List of String representing signals that the user would like to send to the server for graceful shutdown

  • logger (Logger)


17
18
19
# File 'lib/grpc_server.rb', line 17

def initialize(**kwargs)
  @engine = Engine.new(**kwargs)
end