class Dispatcher
- Dispatcher
- Application
- ActionController::Base
- Reference
- Object
Defined in:
controllers/dispatcher.crConstant Summary
-
NAMESPACE =
["/api/dispatch/v1"]
-
default namespace based on class
-
PARSER_LIST =
["application/json"]
-
RESPONDER_LIST =
["application/json"]
Class Method Summary
-
.base_route
Helper for obtaining base route
-
.index(hash_parts : Hash(String | Symbol, Nil | Bool | Int32 | Int64 | Float32 | Float64 | String | Symbol) | Nil = nil, **tuple_parts)
Helper methods for performing redirect_to calls
Instance Method Summary
- #acquire_token : String | Nil
- #authenticate
-
#base_route(*args, **options)
Helper for obtaining base route
-
#base_route(*args, **options, &)
Helper for obtaining base route
-
#healthcheck : Nil
used to check service is responding
-
#index : Stats
Returns details about open servers and number of engine drivers listening.
-
#tcp_dispatch(ws, port : UInt32, accept : String) : Nil
Registers interest in TCP connections being opened on a certain port
-
#udp_dispatch(ws, port : UInt32, accept : String) : Nil
registers interest of incoming UDP data
-
#version : PlaceOS::Model::Version
returns the service commit level and build time
Instance methods inherited from class Application
bad_media_type(error) : ContentError
bad_media_type,
invalid_param(error) : ParameterError
invalid_param,
resource_requires_authentication(error) : CommonError
resource_requires_authentication
Class Method Detail
def self.index(hash_parts : Hash(String | Symbol, Nil | Bool | Int32 | Int64 | Float32 | Float64 | String | Symbol) | Nil = nil, **tuple_parts)
#
Helper methods for performing redirect_to calls
Instance Method Detail
Returns details about open servers and number of engine drivers listening. Also returns details about the number of TCP client connections to the servers
def tcp_dispatch(ws, port : UInt32, accept : String) : Nil
#
Registers interest in TCP connections being opened on a certain port
def udp_dispatch(ws, port : UInt32, accept : String) : Nil
#
registers interest of incoming UDP data