Minion::Client
Inherits Reference < Object
Constants
CONNECTION_FAILURE_TIMEOUT = 86400 * 2
MAX_FAILURE_COUNT = 0_u128 &- 1
MAX_LENGTH_BYTES = MAX_MESSAGE_LENGTH.to_s.length
MAX_MESSAGE_LENGTH = 8192
PERSISTENT_QUEUE_LIMIT = 10737412742_i64
RECONNECT_THROTTLE_INTERVAL = 0.1
VERSION = "0.1.0"
Constructors
new(host : String = "127.0.0.1", port : Int32 = 6766, group : String = "", server : String = UUID.new(identifier: build_identifier).to_s, key : String = "")
SourceClass methods
connection_failure_timeout
Sourceconnection_failure_timeout=(val)
Sourcemax_failure_count
Sourcemax_failure_count=(val)
Sourcepersistent_queue_limit
Sourcepersistent_queue_limit=(val)
Sourcereconnect_throttle_interval
Sourcereconnect_throttle_interval=(val)
SourceInstance methods
_drain_the_swamp
Source_local_log(verb : String | Symbol = "", uuid : UUID = UUID.new, data : Array(String) = [@group, @server] of String, already_packed_msg : Slice(UInt8) | Nil = nil)
Source_send_remote(verb : String | Symbol = "", uuid : UUID = UUID.new, data : Array(String) = [@group, @server] of String, flush_after_send = false, already_packed_msg : Slice(UInt8) | Nil = nil)
TODO: This is gross. Use overloading instead of doing this like it's Ruby. def _send_remote(service, severity, message, flush_after_send = true)
authenticate
Sourceauthenticated?
Sourcebuild_identifier(random = false)
This only comes into play if a server ID is being fabricated by the client itself. It tries to get the MAC address of the main interface on the system via a poor heuristic, and if that fails, it just makes 6 random bytes.
clear_failure
Sourceclose
Sourceclose_connection
Sourceclosed?
Sourceconnect
Sourceconnection_failure_timeout
Sourceconnection_failure_timeout=(val)
Sourcedrain_the_swamp
Sourcefail_connect?
Sourcefailed?
Sourcefailed_too_long?
Sourcefailed_too_many?
Sourcemax_failure_count
Sourcemax_failure_count=(val)
Sourcenon_blocking_lock_on_file_handle(file_handle, &)
Sourceopen_connection(host, port)
Sourcepersistent_queue_limit
Sourcepersistent_queue_limit=(val)
Sourceram_queue_limit
Sourceram_queue_limit=(val)
Sourceread(io = @socket)
Sourcereconnect
Sourcereconnect_throttle_interval
Sourcereconnect_throttle_interval=(val)
Sourceregister_failure
Sourcesend(verb : String | Symbol = "", uuid : UUID = UUID.new, data : Array(String) = [@group, @server] of String)
Sourcesetup_local_logging
Sourcesetup_reconnect_fiber
Sourcesetup_remote
Sourcethere_is_a_swamp?
Sourcetmplog
Sourcetmplog=(tmplog : Nil | String)
Sourcetmplog_prefix
Sourcetmplogs
Sourcetotal_count
Source