1# NAME 2 3Net::Groonga::HTTP - Client library for Groonga httpd. 4 5# SYNOPSIS 6 7 use Net::Groonga::HTTP; 8 9 my $groonga = Net::Groonga::HTTP->new( 10 end_point => 'http://127.0.0.1:10041/d/', 11 ); 12 my $res = $groonga->status(); 13 use Data::Dumper; warn Dumper($res); 14 15 16 17# DESCRIPTION 18 19Net::Groonga::HTTP is a client library for Groonga http server. 20 21Groonga is a fast full text search engine. Please look [http://groonga.org/](http://groonga.org/). 22 23# CONSTRUCTOR 24 25 Net::Groonga::HTT->new(%args); 26 27You can create instance with following arguments: 28 29- end\_point :Str 30 31 API end point URL for Groonga httpd. 32 33 Example: 34 35 Net::Groonga::HTTP->new(end_point => 'http://127.0.0.1:10041/d/'); 36 37- ua : Furl 38 39 Instance of Furl to access Groonga httpd. 40 41 Example: 42 43 Net::Groonga::HTTP->new(ua => Furl->new()); 44 45# METHODS 46 47- `$groonga->call($function, %args)` 48 49 Call a http server. Function name is `$function`. Pass the `%args`. 50 51 This method returns instance of [Net::Groonga::HTTP::Response](http://search.cpan.org/perldoc?Net::Groonga::HTTP::Response). 52 53- $groonga->load(%args) 54 55 $groonga->load( 56 table => 'Entry', 57 values => \@values, 58 ); 59 60 Load the data to database. This method encodes _values_ to JSON automatically, if it's arrayref. 61 62- $groonga->select(%args) 63- $groonga->status(%args) 64- $groonga->select(%args) 65- $groonga->delete(%args) 66- $groonga->column\_create(%args) 67- $groonga->dump(%args) 68 69 You can use these methods if you are lazy. 70 71# LICENSE 72 73Copyright (C) tokuhirom. 74 75This library is free software; you can redistribute it and/or modify 76it under the same terms as Perl itself. 77 78# AUTHOR 79 80tokuhirom <tokuhirom@gmail.com> 81