Skip to content

jtrw/manage-secrets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Manager secrets

Use

go run backend/app/main.go run - Run web server

go run backend/app/main.go kv set fkey value - Set Value

go run backend/app/main.go kv get fkey - Get Value

Make

make run

make get key

make set key

Api

Auth

Add to header key Access-Token for authorization When you execute run command in output you see access token

Rest Example

GET: http://127.0.0.1:8080/api/v1/kv/one/two?onlyData=1

Params onlyData means it will be output only clear data without system information

POST: http://127.0.0.1:8080/api/v1/kv/one/two

Body type json:

{
    "firstName": "John",
    "lastName": "Smith"
}

Use

  1. boltdb

Dev

Add local package

cd pkg/utils => go mod init

in main go.mod file add our module

require (
    ...
	utils v1.0.0 // indirect
)

replace utils v1.0.0 => ./pkg/utils

run command go mod tidy and get package in main project go get [email protected]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published