struct Nats::ConnectResponse

Included Modules

Defined in:

protobufs/protocol.pb.cr

Constant Summary

FIELDS = {1 => {name: :pub_prefix, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :sub_requests, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :unsub_requests, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :close_requests, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :error, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :sub_close_requests, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :ping_requests, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :ping_interval, pb_type: :int32, crystal_type: Int32, cast_type: Int32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :ping_max_out, pb_type: :int32, crystal_type: Int32, cast_type: Int32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 10 => {name: :protocol, pb_type: :int32, crystal_type: Int32, cast_type: Int32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 100 => {name: :public_key, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module Protobuf::Message

to_slice : Bytes to_slice

Constructor Detail

def self.new(buf : Protobuf::Buffer) #

def self.new(pub_prefix : String | Nil = nil, sub_requests : String | Nil = nil, unsub_requests : String | Nil = nil, close_requests : String | Nil = nil, error : String | Nil = nil, sub_close_requests : String | Nil = nil, ping_requests : String | Nil = nil, ping_interval : Int32 | Nil = nil, ping_max_out : Int32 | Nil = nil, protocol : Int32 | Nil = nil, public_key : String | Nil = nil) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def close_requests : String | Nil #

def close_requests=(close_requests : String | Nil) #

def error : String | Nil #

def error=(error : String | Nil) #

def ping_interval : Int32 | Nil #

def ping_interval=(ping_interval : Int32 | Nil) #

def ping_max_out : Int32 | Nil #

def ping_max_out=(ping_max_out : Int32 | Nil) #

def ping_requests : String | Nil #

def ping_requests=(ping_requests : String | Nil) #

def protocol : Int32 | Nil #

def protocol=(protocol : Int32 | Nil) #

def pub_prefix : String | Nil #

def pub_prefix=(pub_prefix : String | Nil) #

def public_key : String | Nil #

def public_key=(public_key : String | Nil) #

def sub_close_requests : String | Nil #

def sub_close_requests=(sub_close_requests : String | Nil) #

def sub_requests : String | Nil #

def sub_requests=(sub_requests : String | Nil) #

def to_protobuf(io : IO, embedded = false) #

def to_protobuf #

def unsub_requests : String | Nil #

def unsub_requests=(unsub_requests : String | Nil) #