class

JoobQ::APIServer

Inherits Reference < Object

Constants

Log = ::Log.for("API SERVER")

Class methods

start(address : String = "127.0.0.1", port : Int32 = 8080, *, policy : ManagementPolicy = ManagementPolicy.from_env)
Source
stop

Closes the listener started by start (which then returns). Does nothing when none is running.

Source

Instance methods

start(address : String = "127.0.0.1", port : Int32 = 8080, *, policy : ManagementPolicy = ManagementPolicy.from_env)

Serves until APIServer.stop (or JoobQ.shutdown). Returns at once, without listening, when the shutdown has begun.

Source