struct Murcure::Protos::UserStats

Included Modules

Defined in:

murcure/utils/protos.cr

Constant Summary

FIELDS = {1 => {name: :session, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :stats_only, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: false, packed: false}, 3 => {name: :certificates, pb_type: :bytes, crystal_type: Slice(UInt8), cast_type: Array(Slice(UInt8))?, native: true, optional: true, repeated: true, default: nil, packed: false}, 4 => {name: :from_client, pb_type: UserStats::Stats, crystal_type: UserStats::Stats, cast_type: UserStats::Stats?, native: false, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :from_server, pb_type: UserStats::Stats, crystal_type: UserStats::Stats, cast_type: UserStats::Stats?, native: false, 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}, 12 => {name: :version, pb_type: Version, crystal_type: Version, cast_type: Version?, native: false, optional: true, repeated: false, default: nil, packed: false}, 13 => {name: :celt_versions, pb_type: :int32, crystal_type: Int32, cast_type: Array(Int32)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 14 => {name: :address, pb_type: :bytes, crystal_type: Slice(UInt8), cast_type: Slice(UInt8)?, native: true, optional: true, repeated: false, default: nil, packed: false}, 15 => {name: :bandwidth, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 16 => {name: :onlinesecs, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 17 => {name: :idlesecs, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 18 => {name: :strong_certificate, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: false, packed: false}, 19 => {name: :opus, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: false, 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(session : UInt32 | Nil = nil, stats_only : Bool | Nil = false.as(Bool), certificates : Array(Slice(UInt8)) | Nil = nil, from_client : UserStats::Stats | Nil = nil, from_server : UserStats::Stats | 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, version : Version | Nil = nil, celt_versions : Array(Int32) | Nil = nil, address : Slice(UInt8) | Nil = nil, bandwidth : UInt32 | Nil = nil, onlinesecs : UInt32 | Nil = nil, idlesecs : UInt32 | Nil = nil, strong_certificate : Bool | Nil = false.as(Bool), opus : Bool | Nil = false.as(Bool)) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def address : Slice(UInt8) | Nil #

def address=(address : Slice(UInt8) | Nil) #

def bandwidth : UInt32 | Nil #

def bandwidth=(bandwidth : UInt32 | Nil) #

def celt_versions : Array(Int32) | Nil #

def celt_versions=(celt_versions : Array(Int32) | Nil) #

def certificates : Array(Slice(UInt8)) | Nil #

def certificates=(certificates : Array(Slice(UInt8)) | Nil) #

def from_client : UserStats::Stats | Nil #

def from_client=(from_client : UserStats::Stats | Nil) #

def from_server : UserStats::Stats | Nil #

def from_server=(from_server : UserStats::Stats | Nil) #

def idlesecs : UInt32 | Nil #

def idlesecs=(idlesecs : UInt32 | Nil) #

def onlinesecs : UInt32 | Nil #

def onlinesecs=(onlinesecs : UInt32 | Nil) #

def opus : Bool | Nil #

def opus=(opus : Bool | Nil) #

def session : UInt32 | Nil #

def session=(session : UInt32 | Nil) #

def stats_only : Bool | Nil #

def stats_only=(stats_only : Bool | Nil) #

def strong_certificate : Bool | Nil #

def strong_certificate=(strong_certificate : Bool | 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 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) #

def version : Version | Nil #

def version=(version : Version | Nil) #