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)


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

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)


136
137
138
# File 'sig/types.rbs', line 136

def enable_compression
  @enable_compression
end

#enable_keepaliveBoolean?

Returns the value of attribute enable_keepalive.

Returns:

  • (Boolean, nil)


139
140
141
# File 'sig/types.rbs', line 139

def enable_keepalive
  @enable_keepalive
end

#enabledBoolean?

Returns the value of attribute enabled.

Returns:

  • (Boolean, nil)


134
135
136
# File 'sig/types.rbs', line 134

def enabled
  @enabled
end

#keepalive_intervalInteger?

Returns the value of attribute keepalive_interval.

Returns:

  • (Integer, nil)


140
141
142
# File 'sig/types.rbs', line 140

def keepalive_interval
  @keepalive_interval
end

#keepalive_timeoutInteger?

Returns the value of attribute keepalive_timeout.

Returns:

  • (Integer, nil)


141
142
143
# File 'sig/types.rbs', line 141

def keepalive_timeout
  @keepalive_timeout
end

#max_concurrent_streamsInteger?

Returns the value of attribute max_concurrent_streams.

Returns:

  • (Integer, nil)


138
139
140
# File 'sig/types.rbs', line 138

def max_concurrent_streams
  @max_concurrent_streams
end

#max_message_sizeInteger?

Returns the value of attribute max_message_size.

Returns:

  • (Integer, nil)


135
136
137
# File 'sig/types.rbs', line 135

def max_message_size
  @max_message_size
end

#max_stream_response_bytesInteger?

Returns the value of attribute max_stream_response_bytes.

Returns:

  • (Integer, nil)


142
143
144
# File 'sig/types.rbs', line 142

def max_stream_response_bytes
  @max_stream_response_bytes
end

#request_timeoutInteger?

Returns the value of attribute request_timeout.

Returns:

  • (Integer, nil)


137
138
139
# File 'sig/types.rbs', line 137

def request_timeout
  @request_timeout
end

Class Method Details

.defaultGrpcConfig

Returns:



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

def self.default: () -> GrpcConfig