#geo-ip #maxmind

bin+lib mmdb-grpc

The gRPC service that provides a query to Maxmind's GeoLite2 databases

13 releases

0.5.8 Apr 8, 2023
0.5.7 Mar 18, 2023
0.5.6 Oct 31, 2022
0.5.5 Jul 21, 2022
0.5.0 Jul 14, 2020

#94 in Database implementations

Download history

57 downloads per month

MIT license

25KB
567 lines

mmdb-grpc

crates.io Build Release

The gRPC service that provides a query to maxminddb

Usage

❯ cargo install mmdb-grpc
❯ mmdb-server --help
mmdb-grpc x.y.z
Takeru Sato <type.in.type@gmail.com>

USAGE:
    mmdb-server [OPTIONS]

FLAGS:
        --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -h, --host <host>                                                        [default: localhost]
        --keepalive-permit-without-calls <keepalive-permit-without-calls>
        --keepalive-time <keepalive-time>
        --keepalive-timeout <keepalive-timeout>
    -f, --file <mmdb-path>
            [default: /usr/share/GeoIP/GeoLite2-City.mmdb]

    -p, --port <port>                                                        [default: 50000]
        --slots-per-worker <slots-per-worker>
    -w, --workers <workers>                                                  [default: 1]
❯ mmdb-reload --help
mmdb-grpc x.y.z
Takeru Sato <type.in.type@gmail.com>

USAGE:
    mmdb-reload [OPTIONS]

FLAGS:
        --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -h, --host <host>             [default: localhost]
    -p, --port <port>             [default: 50000]
    -s, --schedule <schedule>

Dependencies

~50MB
~888K SLoC