Documentation ¶
Index ¶
- func AddBucket(ctx *fasthttp.RequestCtx)
- func AddKey(ctx *fasthttp.RequestCtx)
- func ClearDB(ctx *fasthttp.RequestCtx)
- func CreateDB(ctx *fasthttp.RequestCtx)
- func DeleteKey(ctx *fasthttp.RequestCtx)
- func DownloadDB(ctx *fasthttp.RequestCtx)
- func RemoveBucket(ctx *fasthttp.RequestCtx)
- func Server()
- func StoreDB(ctx *fasthttp.RequestCtx)
- func UpdateKey(ctx *fasthttp.RequestCtx)
- func ViewDB(ctx *fasthttp.RequestCtx)
- type APIResponse
- type Errors
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddBucket ¶
func AddBucket(ctx *fasthttp.RequestCtx)
AddBucket is the handler for the POST /api/v1/db/bucket/accesskey/file endpoint. Adds a new bucket to the open DB file.
func AddKey ¶
func AddKey(ctx *fasthttp.RequestCtx)
func ClearDB ¶
func ClearDB(ctx *fasthttp.RequestCtx)
ClearDB is the handler for the POST /api/v1/db/accesskey endpoint.
func CreateDB ¶
func CreateDB(ctx *fasthttp.RequestCtx)
CreateDB is the handler for the POST /api/v1/db/create endpoint. Creates a new boltdb file.
func DeleteKey ¶
func DeleteKey(ctx *fasthttp.RequestCtx)
DeleteKey is the handler for the POST /api/v1/db/accesskey/file/key endpoint. Removes a key from the boltdb file.
func DownloadDB ¶
func DownloadDB(ctx *fasthttp.RequestCtx)
DownloadDB is the handler for the GET /api/v1/db/download/accesskey/file endpoint. Downloads the boltdb file to the UI.
func RemoveBucket ¶
func RemoveBucket(ctx *fasthttp.RequestCtx)
RemoveBucket is the handler for the POST /api/v1/db/bucket/accesskey/file endpoint. Removes a bucket from the open DB file.
func StoreDB ¶
func StoreDB(ctx *fasthttp.RequestCtx)
StoreDB is the handler for the POST /api/v1/db/upload endpoint. Opens the boltdb file and returns the file handle.
func UpdateKey ¶
func UpdateKey(ctx *fasthttp.RequestCtx)
UpdateKey is the handler for the POST /api/v1/db/accesskey/file/key endpoint. Updates a key in the boltdb file.
func ViewDB ¶
func ViewDB(ctx *fasthttp.RequestCtx)
ViewDB is the handler for the POST /api/v1/db/accesskey/file endpoint. Opens the boltdb file and returns the file key-value paid for rendering in UI.