struct Nats::PubMsg
- Nats::PubMsg
- Struct
- Value
- Object
Included Modules
Defined in:
protobufs/protocol.pb.crConstant Summary
-
FIELDS =
{1 => {name: :client_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :guid, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :subject, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :reply, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :data, pb_type: :bytes, crystal_type: Slice(UInt8), cast_type: Slice(UInt8)?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :conn_id, pb_type: :bytes, crystal_type: Slice(UInt8), cast_type: Slice(UInt8)?, native: true, optional: true, repeated: false, default: nil, packed: false}, 10 => {name: :sha256, pb_type: :bytes, crystal_type: Slice(UInt8), cast_type: Slice(UInt8)?, native: true, optional: true, repeated: false, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)
Constructors
- .new(buf : Protobuf::Buffer)
- .new(client_id : String | Nil = nil, guid : String | Nil = nil, subject : String | Nil = nil, reply : String | Nil = nil, data : Slice(UInt8) | Nil = nil, conn_id : Slice(UInt8) | Nil = nil, sha256 : Slice(UInt8) | Nil = nil)
Class Method Summary
Instance Method Summary
- #[](key : String)
- #client_id : String | Nil
- #client_id=(client_id : String | Nil)
- #conn_id : Slice(UInt8) | Nil
- #conn_id=(conn_id : Slice(UInt8) | Nil)
- #data : Slice(UInt8) | Nil
- #data=(data : Slice(UInt8) | Nil)
- #guid : String | Nil
- #guid=(guid : String | Nil)
- #reply : String | Nil
- #reply=(reply : String | Nil)
- #sha256 : Slice(UInt8) | Nil
- #sha256=(sha256 : Slice(UInt8) | Nil)
- #subject : String | Nil
- #subject=(subject : String | Nil)
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
Instance methods inherited from module Protobuf::Message
to_slice : Bytes
to_slice
Constructor Detail
def self.new(client_id : String | Nil = nil, guid : String | Nil = nil, subject : String | Nil = nil, reply : String | Nil = nil, data : Slice(UInt8) | Nil = nil, conn_id : Slice(UInt8) | Nil = nil, sha256 : Slice(UInt8) | Nil = nil)
#