struct Murcure::Protos::ServerConfig

Included Modules

Defined in:

murcure/utils/protos.cr

Constant Summary

FIELDS = {1 => {name: :max_bandwidth, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :welcome_text, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :allow_html, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :message_length, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :image_message_length, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :max_users, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, 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(max_bandwidth : UInt32 | Nil = nil, welcome_text : String | Nil = nil, allow_html : Bool | Nil = nil, message_length : UInt32 | Nil = nil, image_message_length : UInt32 | Nil = nil, max_users : UInt32 | Nil = nil) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def allow_html : Bool | Nil #

def allow_html=(allow_html : Bool | Nil) #

def image_message_length : UInt32 | Nil #

def image_message_length=(image_message_length : UInt32 | Nil) #

def max_bandwidth : UInt32 | Nil #

def max_bandwidth=(max_bandwidth : UInt32 | Nil) #

def max_users : UInt32 | Nil #

def max_users=(max_users : UInt32 | Nil) #

def message_length : UInt32 | Nil #

def message_length=(message_length : UInt32 | Nil) #

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

def to_protobuf #

def welcome_text : String | Nil #

def welcome_text=(welcome_text : String | Nil) #