3
0

Removing configuration clutter.

This commit is contained in:
Karchnu 2020-11-19 16:26:43 +01:00
parent 1deee0f7f1
commit 640284c067
2 changed files with 2 additions and 23 deletions

View File

@ -29,21 +29,7 @@ class Context
end
class Baguette::Configuration
class Websocketc < Base
property verbosity : Int32 = 2
property ipc_timer : Int32 = 30_000
property print_ipc_timer : Bool = false
property print_ipc_connection : Bool = false
property print_ipc_disconnection : Bool = false
property print_ipc_extra_socket : Bool = false
property print_ipc_message_received : Bool = false
property print_ipc_message_sent : Bool = false
property print_ipc_switch : Bool = false
def initialize
end
class Websocketc < IPC
end
end

View File

@ -29,21 +29,14 @@ class Tracking::Request
end
class Baguette::Configuration
class Websocket < Base
class Websocket < IPC
# service instance parameters
# they can be changed via the cli
property service_name : String = "websocket"
property host : String = "0.0.0.0"
property port : UInt16 = 1234
property ipc_timer : Int32 = 30_000.to_i32
property print_messages : Bool = false
property print_ipc_timer : Bool = false
property verbosity : Int32 = 3
def initialize
end
end
end