A simple storage API that using Redis allowing for extremely fast response times!
ensure you point to a valid JWTea microservice for auth! You can also customize the configuration variables via enviroment variables:
// redis enviroment variables
"REDIS_HOST"
"REDIS_PORT"
"REDIS_PASSWORD"
"REDIS_DB"
// port enviroment variables
"PORT"
// jwtea enviroment variables
"JWTEA_URL"
setup up is simple with the use of glide:
glide install
go build
./blob
Get the status of the application.
Get value based on key
Get all values that match the key
Login using JWTea for token based auth, there is no need for tokens for reading data only writing!. Example post body (JSON)
{
"username": "test",
"password": "shhhhh!"
}
Set value based on key. Example post body (JSON)
{
"token": "VALID TOKEN RETURNED FROM LOGIN",
"key": "hello",
"value": "hello world!"
}
)