Class: Fluent::Plugin::GroongaInput::GQTPInput::RequestParser

Inherits:
GQTP::Parser
  • Object
show all
Defined in:
lib/fluent/plugin/in_groonga.rb

Instance Method Summary collapse

Constructor Details

#initialize(input) ⇒ RequestParser

Returns a new instance of RequestParser.



437
438
439
440
441
# File 'lib/fluent/plugin/in_groonga.rb', line 437

def initialize(input)
  super()
  @input = input
  initialize_command_parser
end

Instance Method Details

#closeObject



451
452
453
# File 'lib/fluent/plugin/in_groonga.rb', line 451

def close
  @command_parser.finish
end

#on_body(chunk) ⇒ Object



443
444
445
# File 'lib/fluent/plugin/in_groonga.rb', line 443

def on_body(chunk)
  @command_parser << chunk
end

#on_completeObject



447
448
449
# File 'lib/fluent/plugin/in_groonga.rb', line 447

def on_complete
  @command_parser << "\n"
end