Module: Serf::Client::Commands

Included in:
Connection
Defined in:
lib/serf/client/connection.rb

Constant Summary collapse

COMMANDS =
{
  handshake: [ :header ],
  members:   [ :header, :body ],
  event:     [ :header ],
  stop:      [ :header ],
  leave:     [ :header ],
  respond:   [ :header ],
  monitor:   [ :header ],
  stop:      [ :header ],
  stream:    [ :header ],
  query:     [ :header ],
  auth:      [ :header ],
}

Instance Method Summary collapse

Instance Method Details

#command(meth) ⇒ Object



20
21
22
# File 'lib/serf/client/connection.rb', line 20

def command meth
  COMMANDS[meth.to_sym]
end