{"id":19762536,"url":"https://github.com/lflxp/lflxp-api","last_synced_at":"2026-05-06T00:06:04.392Z","repository":{"id":57519430,"uuid":"249342279","full_name":"lflxp/lflxp-api","owner":"lflxp","description":"Using boltdb to quickly build the local key / value restful API for local monitoring, etc","archived":false,"fork":false,"pushed_at":"2020-03-23T09:44:15.000Z","size":909,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-10T23:42:26.404Z","etag":null,"topics":["boltdb","element-ui","gin","profiling","prometheus-metrics","storm","swagger","vue"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lflxp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-23T05:19:41.000Z","updated_at":"2021-09-06T10:28:57.000Z","dependencies_parsed_at":"2022-08-29T23:41:23.856Z","dependency_job_id":null,"html_url":"https://github.com/lflxp/lflxp-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lflxp%2Flflxp-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lflxp%2Flflxp-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lflxp%2Flflxp-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lflxp%2Flflxp-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lflxp","download_url":"https://codeload.github.com/lflxp/lflxp-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241094624,"owners_count":19908674,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["boltdb","element-ui","gin","profiling","prometheus-metrics","storm","swagger","vue"],"created_at":"2024-11-12T04:05:00.193Z","updated_at":"2025-11-23T00:05:20.017Z","avatar_url":"https://github.com/lflxp.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lflxp-api\nUsing boltdb to quickly build the local key / value restful API for local monitoring, etc\n\n![](https://github.com/lflxp/lflxp-api/blob/master/asset/b1.png)\n\n# Requirements\n\n* go get -u github.com/jteeuwen/go-bindata/...\n* go get -u github.com/elazarl/go-bindata-assetfs/...\n* go get -u github.com/swaggo/swag/cmd/swag\n\n# Install\n\n\u003e make\n\nThere were two step in makefile\n\n* cp cmd/main.go ..\n* go build\n\n\n`For Coder Demo`\n\n\u003e cmd/main.go\n\n```go\npackage main\n\nimport (\n\t\"flag\"\n\t\"github.com/lflxp/lflxp-api/pkg\"\n)\n\nvar (\n\thost string\n\tport string\n\tstats bool\n)\n\nfunc init() {\n\tflag.StringVar(\u0026host,\"host\",\"127.0.0.1\",\"bind http host\")\n\tflag.StringVar(\u0026port,\"port\",\"8080\",\"bind http port\")\n\tflag.BoolVar(\u0026stats,\"stats\",false,\"is output db stats\")\n\tflag.Parse()\n}\n\nfunc main() {\n\tapi := pkg.Apis{\n\t\tHost:host,\n\t\tPort:port,\n\t\tStats: stats,\n\t}\n\n\terr := api.Check()\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tapi.Execute()\n}\n```\n\n# Running\n\n`Format`\n\n```bash\n➜  lflxp-api git:(master) ✗ lflxp-api -h\nUsage of lflxp-api:\n  -host string\n        bind http host (default \"127.0.0.1\")\n  -port string\n        bind http port (default \"8080\")\n  -stats\n        is output db stat\n```\n\n\u003e lflxp-api -stats \n\nOpen http://127.0.0.1:8080 in browser\n\n# Prefix interface\n![](https://github.com/lflxp/lflxp-api/blob/master/asset/b2.png)\n\nIt mainly provides basic operation functions, including:\n\n* Bucket query, add, delete\n\n* Bucket key and value display\n\n* Key deletion and modification function\n\n* Prefix query\n\n* Paging function\n\n* Refresh function \n\n# Range interface\n\nThe only difference from the prefix interface is the search function, including:\n\n* Query by key time range\n\n* The time data is an array of [min, Max], eg: [\"20200313000000\", \"20200412235959\"]\n\n* The time format is: ` yyyymmddhhmmss`\n\n# Orm\n\nTodo: time series field retrieval based on value\n\n# Backup\n\nProvide HTTP backup data function\n\n# Swagger\n\nVisual interface of API based on gin swagger\n\n![](https://github.com/lflxp/lflxp-api/blob/master/asset/b3.png)\n\n# Making data\n\n\u003e while true;do curl -X POST \"http://127.0.0.1:8080/api/v1/key/add/monitor/$RANDOM/$RANDOM\" -H \"accept: application/json\";done","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flflxp%2Flflxp-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flflxp%2Flflxp-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flflxp%2Flflxp-api/lists"}