key-value-store

module
v0.0.0-...-1363f68 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2021 License: GPL-3.0

README

key-value-store

Key-Value-Store Application with go

Key-Value service

Development

Run

go run cmd/server/main.go -env=env in cmd/server

Testing

Make test

Build

Make build

Swagger

for swagger UI

Open http://127.0.0.1:9234/static/swagger-ui/

Using Docker to simplify development (optional)

Run command in root folder

docker-compose up 

Metrics

Open http://localhost:9090/ for Prometheus
Open http://localhost:16686/search for Jaeger UI

Vault

You can use vault as a secure secrets management but you should add _SECURE  to environment variables like
I will use this for scheduler job timer property 
FILE_WRITER_CRON_TIMER_SECONDS_SECURE=0
FILE_WRITER_CRON_TIMER_MINUTES_SECURE=10
 You can access vault interface at localhost:8300 
 Method Token 
 Token = myroot

Directories

Path Synopsis
cmd
openapi-gen command
server command
Package internal defines the types used to create data and their corresponding attributes
Package internal defines the types used to create data and their corresponding attributes
envvar/envvartesting
Code generated by counterfeiter.
Code generated by counterfeiter.
rest/resttesting
Code generated by counterfeiter.
Code generated by counterfeiter.
pkg
openapi3
Package openapi3 provides primitives to interact with the openapi HTTP API.
Package openapi3 provides primitives to interact with the openapi HTTP API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL