Groonga 3.0.9 Source Code Document
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Macros | Typedefs | Variables
ngx_http_geoip_module.c File Reference
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
#include <GeoIP.h>
#include <GeoIPCity.h>
Include dependency graph for ngx_http_geoip_module.c:

Go to the source code of this file.

Data Structures

struct  ngx_http_geoip_conf_t
struct  ngx_http_geoip_var_t

Macros

#define NGX_GEOIP_COUNTRY_CODE   0
#define NGX_GEOIP_COUNTRY_CODE3   1
#define NGX_GEOIP_COUNTRY_NAME   2

Typedefs

typedef const char *(* ngx_http_geoip_variable_handler_pt )(GeoIP *, u_long addr)

Variables

ngx_http_geoip_variable_handler_pt ngx_http_geoip_country_functions []
ngx_module_t ngx_http_geoip_module

Macro Definition Documentation

#define NGX_GEOIP_COUNTRY_CODE   0

Definition at line 16 of file ngx_http_geoip_module.c.

#define NGX_GEOIP_COUNTRY_CODE3   1

Definition at line 17 of file ngx_http_geoip_module.c.

#define NGX_GEOIP_COUNTRY_NAME   2

Definition at line 18 of file ngx_http_geoip_module.c.

Typedef Documentation

typedef const char*(* ngx_http_geoip_variable_handler_pt)(GeoIP *, u_long addr)

Definition at line 41 of file ngx_http_geoip_module.c.

Variable Documentation

ngx_http_geoip_variable_handler_pt ngx_http_geoip_country_functions[]
Initial value:
{
GeoIP_country_code_by_ipnum,
GeoIP_country_code3_by_ipnum,
GeoIP_country_name_by_ipnum,
}

Definition at line 45 of file ngx_http_geoip_module.c.

ngx_module_t ngx_http_geoip_module
Initial value:
{
&ngx_http_geoip_module_ctx,
ngx_http_geoip_commands,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
}

Definition at line 153 of file ngx_http_geoip_module.c.