{"id":21007889,"url":"https://github.com/lflxp/lflxp-static","last_synced_at":"2026-05-01T08:32:46.797Z","repository":{"id":57519403,"uuid":"249355926","full_name":"lflxp/lflxp-static","owner":"lflxp","description":" It is mainly to quickly start an HTTP service for file transmission, including file upload and download and video file playback, to get rid of the embarrassment of no tools available","archived":false,"fork":false,"pushed_at":"2024-01-23T10:24:35.000Z","size":863,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-27T19:27:17.305Z","etag":null,"topics":["gin","http-static","profile","prometheus-metrics","vue"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-23T06:47:57.000Z","updated_at":"2021-12-21T17:14:52.000Z","dependencies_parsed_at":"2024-01-12T08:37:33.058Z","dependency_job_id":"87ac8e5f-8238-4981-9242-b408773bff9c","html_url":"https://github.com/lflxp/lflxp-static","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/lflxp/lflxp-static","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lflxp%2Flflxp-static","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lflxp%2Flflxp-static/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lflxp%2Flflxp-static/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lflxp%2Flflxp-static/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lflxp","download_url":"https://codeload.github.com/lflxp/lflxp-static/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lflxp%2Flflxp-static/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32490810,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["gin","http-static","profile","prometheus-metrics","vue"],"created_at":"2024-11-19T09:10:26.837Z","updated_at":"2026-05-01T08:32:46.777Z","avatar_url":"https://github.com/lflxp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"It is mainly to quickly start an HTTP service for file transmission, including file upload and download and video file playback, to get rid of the embarrassment of no tools available\n\n![](https://github.com/lflxp/lflxp-static/blob/master/asset/httpstatic.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# Usage\n\n`For Coder Demo`\n\n\u003e cmd/main.go\n\n```go\npackage main\n\nimport (\n\t\"flag\"\n\n\t\"github.com/lflxp/lflxp-static/pkg\"\n)\n\nvar (\n\tportHttpStatic string\n\tpathHttpStatic string\n\tisVideo        bool\n\tpagesize       int\n\ttypes          string\n)\n\nfunc init() {\n\tflag.StringVar(\u0026portHttpStatic, \"p\", \"9090\", \"service port\")\n\tflag.StringVar(\u0026pathHttpStatic, \"f\", \"./\", \"load catalogs\")\n\tflag.StringVar(\u0026types, \"t\", \".avi,.wma,.rmvb,.rm,.mp4,.mov,.3gp,.mpeg,.mpg,.mpe,.m4v,.mkv,.flv,.vob,.wmv,.asf,.asx\", \"Filter video types, multiple separated by commas\")\n\tflag.BoolVar(\u0026isVideo, \"v\", false, \"Switch to video mode or not\")\n\tflag.IntVar(\u0026pagesize, \"c\", 20, \"Videos per page\")\n\tflag.Parse()\n}\n\nfunc main() {\n\tapi := pkg.Apis{\n\t\tPort:     portHttpStatic,\n\t\tPath:     pathHttpStatic,\n\t\tTypes:    types,\n\t\tIsVideo:  isVideo,\n\t\tPageSize: pagesize,\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-static git:(master) ✗ lflxp-static -h\nUsage of lflxp-static:\n  -c int\n        Videos per page (default 20)\n  -f string\n        load catalogs (default \"./\")\n  -p string\n        service port (default \"9090\")\n  -t string\n        Filter video types, multiple separated by commas (default \".avi,.wma,.rmvb,.rm,.mp4,.mov,.3gp,.mpeg,.mpg,.mpe,.m4v,.mkv,.flv,.vob,.wmv,.asf,.asx\")\n  -v    Switch to video mode or not\n```\n\n## The parameters of the parameters\n\n\u003e lflxp-static -v -p 9091 -c -f /tmp\n\n```\nSimple file transfer and file presentation through local HTTP service\nUsage:\nshowme static [flags]\nFlags:\n-h, --help help for static\n-c. -- PageSize int number of videos per page (default 20)\n-f. -- path string load directory (default \". /\")\n-p. -- port string service port (default \"9090\")\n-t. -- Types string to filter video types, multiple separated by commas (default \". Avi,. Wma,. RMVB,. RM,. MP4,. MOV,. 3gp,. MPEG,. Mpg,. MPE,. M4v,. MKV,. Flv,. VOB,. WMV,. ASF,. ASX\")\n-v. -- whether video is switched to video mode\nGlobal Flags:\n\n--config string config file (default is $HOME/.showme.yaml)\n```\n\n## Function points\n\n* Web interface operations\n* Static file download\n* Bulk file upload\n* Video file playback\n*Prometheus monitoring\n\n## Optimization of Chinese Medicine\n\n* Full function operation of web page\n* Web page for file download\n* Upload web page (no curl command operation, convenient and fast)\n* View the monitoring indicators on the web page, which can be connected to the Prometheus server for monitoring\n* Web video file loading and viewing function\n\n# 参考\n\n\u003e https://blog.csdn.net/LeoForBest/article/details/121041743","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flflxp%2Flflxp-static","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flflxp%2Flflxp-static","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flflxp%2Flflxp-static/lists"}