Class: Spikard::GrpcConfig

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeGrpcConfig

Returns a new instance of GrpcConfig.

Parameters:

  • enabled: (Boolean)
  • max_message_size: (Integer)
  • enable_compression: (Boolean)
  • request_timeout: (Integer)
  • max_concurrent_streams: (Integer)
  • enable_keepalive: (Boolean)
  • keepalive_interval: (Integer)
  • keepalive_timeout: (Integer)
  • max_stream_response_bytes: (Integer)


160
# File 'sig/types.rbs', line 160

def initialize: (?enabled: bool, ?max_message_size: Integer, ?enable_compression: bool, ?request_timeout: Integer, ?max_concurrent_streams: Integer, ?enable_keepalive: bool, ?keepalive_interval: Integer, ?keepalive_timeout: Integer, ?max_stream_response_bytes: Integer) -> void

Instance Attribute Details

#enable_compressionBoolean?

Returns the value of attribute enable_compression.

Returns:

  • (Boolean, nil)


152
153
154
# File 'sig/types.rbs', line 152

def enable_compression
  @enable_compression
end

#enable_keepaliveBoolean?

Returns the value of attribute enable_keepalive.

Returns:

  • (Boolean, nil)


155
156
157
# File 'sig/types.rbs', line 155

def enable_keepalive
  @enable_keepalive
end

#enabledBoolean?

Returns the value of attribute enabled.

Returns:

  • (Boolean, nil)


150
151
152
# File 'sig/types.rbs', line 150

def enabled
  @enabled
end

#keepalive_intervalInteger?

Returns the value of attribute keepalive_interval.

Returns:

  • (Integer, nil)


156
157
158
# File 'sig/types.rbs', line 156

def keepalive_interval
  @keepalive_interval
end

#keepalive_timeoutInteger?

Returns the value of attribute keepalive_timeout.

Returns:

  • (Integer, nil)


157
158
159
# File 'sig/types.rbs', line 157

def keepalive_timeout
  @keepalive_timeout
end

#max_concurrent_streamsInteger?

Returns the value of attribute max_concurrent_streams.

Returns:

  • (Integer, nil)


154
155
156
# File 'sig/types.rbs', line 154

def max_concurrent_streams
  @max_concurrent_streams
end

#max_message_sizeInteger?

Returns the value of attribute max_message_size.

Returns:

  • (Integer, nil)


151
152
153
# File 'sig/types.rbs', line 151

def max_message_size
  @max_message_size
end

#max_stream_response_bytesInteger?

Returns the value of attribute max_stream_response_bytes.

Returns:

  • (Integer, nil)


158
159
160
# File 'sig/types.rbs', line 158

def max_stream_response_bytes
  @max_stream_response_bytes
end

#request_timeoutInteger?

Returns the value of attribute request_timeout.

Returns:

  • (Integer, nil)


153
154
155
# File 'sig/types.rbs', line 153

def request_timeout
  @request_timeout
end

Class Method Details

.defaultGrpcConfig

Returns:



161
# File 'sig/types.rbs', line 161

def self.default: () -> GrpcConfig