struct Murcure::Protos::ServerConfig
- Murcure::Protos::ServerConfig
- Struct
- Value
- Object
Included Modules
- Protobuf::Message
Defined in:
murcure/utils/protos.crConstant 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
- .new(buf : Protobuf::Buffer)
- .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 Summary
Instance Method Summary
- #[](key : String)
- #allow_html : Bool | Nil
- #allow_html=(allow_html : Bool | Nil)
- #image_message_length : UInt32 | Nil
- #image_message_length=(image_message_length : UInt32 | Nil)
- #max_bandwidth : UInt32 | Nil
- #max_bandwidth=(max_bandwidth : UInt32 | Nil)
- #max_users : UInt32 | Nil
- #max_users=(max_users : UInt32 | Nil)
- #message_length : UInt32 | Nil
- #message_length=(message_length : UInt32 | Nil)
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
- #welcome_text : String | Nil
- #welcome_text=(welcome_text : String | Nil)
Constructor Detail
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)
#