class

Spacetime::Options

Inherits Reference < Object

Fluent configuration options for Spacetime::Client.

Constructors

new(host : String = "http://localhost:3000", database : String = "", token : String | Nil = nil, protocol : String = Protocol::BIN_PROTOCOL, compression : Protocol::Compression = Protocol::Compression::None, light_mode : Bool = false, timeout : Time::Span = 15.seconds, transport : Transport | Nil = nil)
Source

Instance methods

compression(compression : Protocol::Compression) : self
Source
compression
Source
compression=(compression : Protocol::Compression)
Source
database(database : String) : self
Source
database
Source
database=(database : String)
Source
host(host : String) : self
Source
host
Source
host=(host : String)
Source
light_mode(light_mode : Bool) : self
Source
light_mode
Source
light_mode=(light_mode : Bool)
Source
protocol(protocol : String) : self
Source
protocol
Source
protocol=(protocol : String)
Source
timeout(timeout : Time::Span) : self
Source
timeout
Source
timeout=(timeout : Time::Span)
Source
token(token : String | Nil) : self
Source
token
Source
token=(token : String | Nil)
Source
transport(transport : Transport) : self
Source
transport
Source
transport=(transport : Transport | Nil)
Source
use_bsatn
Source
use_json
Source
websocket_uri

Computes the WebSocket subscription URI (/v1/database/:name_or_identity/subscribe).

Source