Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.
/ mmdb-grpc Public archive

The gRPC service that provides a query to MaxMind's GeoLite2 database

License

Notifications You must be signed in to change notification settings

tkrs/mmdb-grpc

Repository files navigation

mmdb-grpc

crates.io Build Release

The gRPC service that provides a query to maxminddb

Usage

❯ cargo install mmdb-grpc
❯ mmdb-server --help
The gRPC service that provides a query to Maxmind's GeoLite2 databases

Usage: mmdb-server [OPTIONS]

Options:
  -H, --host <HOST>
          [default: localhost]
  -P, --port <PORT>
          [default: 50000]
  -F, --file <MMDB_PATH>
          [default: /usr/share/GeoIP/GeoLite2-City.mmdb]
  -W, --workers <WORKERS>
          [default: 1]
      --slots-per-worker <SLOTS_PER_WORKER>
          
      --keepalive-time <KEEPALIVE_TIME>
          
      --keepalive-timeout <KEEPALIVE_TIMEOUT>
          
      --keepalive-permit-without-calls <KEEPALIVE_PERMIT_WITHOUT_CALLS>
          [possible values: true, false]
  -h, --help
          Print help
  -V, --version
          Print version

❯ mmdb-reload --help
Usage: mmdb-reload [OPTIONS]

Options:
  -H, --host <HOST>          [default: localhost]
  -P, --port <PORT>          [default: 50000]
  -S, --schedule <SCHEDULE>  
  -h, --help                 Print help
  -V, --version              Print version