struct Murcure::Protos::Ping

Included Modules

Defined in:

murcure/utils/protos.cr

Constant Summary

FIELDS = {1 => {name: :timestamp, pb_type: :uint64, crystal_type: UInt64, cast_type: UInt64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :good, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :late, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :lost, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :resync, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :udp_packets, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :tcp_packets, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :udp_ping_avg, pb_type: :float, crystal_type: Float32, cast_type: Float32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :udp_ping_var, pb_type: :float, crystal_type: Float32, cast_type: Float32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 10 => {name: :tcp_ping_avg, pb_type: :float, crystal_type: Float32, cast_type: Float32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 11 => {name: :tcp_ping_var, pb_type: :float, crystal_type: Float32, cast_type: Float32?, native: true, optional: true, repeated: false, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

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

def self.new(timestamp : UInt64 | Nil = nil, good : UInt32 | Nil = nil, late : UInt32 | Nil = nil, lost : UInt32 | Nil = nil, resync : UInt32 | Nil = nil, udp_packets : UInt32 | Nil = nil, tcp_packets : UInt32 | Nil = nil, udp_ping_avg : Float32 | Nil = nil, udp_ping_var : Float32 | Nil = nil, tcp_ping_avg : Float32 | Nil = nil, tcp_ping_var : Float32 | Nil = nil) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def good : UInt32 | Nil #

def good=(good : UInt32 | Nil) #

def late : UInt32 | Nil #

def late=(late : UInt32 | Nil) #

def lost : UInt32 | Nil #

def lost=(lost : UInt32 | Nil) #

def resync : UInt32 | Nil #

def resync=(resync : UInt32 | Nil) #

def tcp_packets : UInt32 | Nil #

def tcp_packets=(tcp_packets : UInt32 | Nil) #

def tcp_ping_avg : Float32 | Nil #

def tcp_ping_avg=(tcp_ping_avg : Float32 | Nil) #

def tcp_ping_var : Float32 | Nil #

def tcp_ping_var=(tcp_ping_var : Float32 | Nil) #

def timestamp : UInt64 | Nil #

def timestamp=(timestamp : UInt64 | Nil) #

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

def to_protobuf #

def udp_packets : UInt32 | Nil #

def udp_packets=(udp_packets : UInt32 | Nil) #

def udp_ping_avg : Float32 | Nil #

def udp_ping_avg=(udp_ping_avg : Float32 | Nil) #

def udp_ping_var : Float32 | Nil #

def udp_ping_var=(udp_ping_var : Float32 | Nil) #