Skip to content

lokidb/server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lokidb server

Bring Them Home

Table of Contents

Featurs

  • gRPC support
  • REST support
  • slim docker image

Installation

Docker

docker run -d -p 50051:50051 -p 8080:8080 --name lokidb yoyocode/lokidb

Usage

server

$ lokidb --help
Usage of lokidb:
  -cache_size int
        Max number of keys to save in the RAM for fast reads (default 50000)
  -files_count int
        number of files to save the keys on (more files means better performance, max 1000) (default 10)
  -grpc_host string
        gRPC server host (default "127.0.0.1")
  -grpc_port int
        gRPC server port (default 50051)
  -rest_host string
        REST server host (default "127.0.0.1")
  -rest_port int
        REST server port (default 8080)
  -run_grpc
        Serve gRPC API (default true)
  -run_rest
        Serve REST API (default true)
  -storage_dir string
        The path where the data files will be created (default "./")
$ lokidb -storage_dir data/
2022/08/25 23:52:13 gRPC server listening at 127.0.0.1:50051
2022/08/25 23:52:13 REST server listening at 127.0.0.1:8080

API

The system support REST API as well as a gRPC server.
REST: OpenAPI schema.
gRPC: ProtoBuf schema.
The repo also contains an insomnia workspace (a better looking postman) with all of the requests and enviroments.