httpAPI服务器

时间:2024-03-11 08:48:33
【文件属性】:

文件名称:httpAPI服务器

文件大小:6.11MB

文件格式:ZIP

更新时间:2024-03-11 08:48:33

Go

httpAPI服务器 使用 , , RESTful HTTP API服务器 描述 这是使用Golang构建的基本RESTful API服务器。 在此API服务器中,我已经实现了Cobra CLI以从CLI运行API,并且还使用了gorilla mux而不是Go net / http。 安装 git clone https://github.com/shahincsejnu/httpAPIserver.git cd httpAPIserver go install httpAPIserver 通过CLI命令运行 通过httpAPIserver start在默认端口8080中启动API 通过httpAPIserver start -p=8088在给定的端口中启动API,将端口号替换为8088 使用dockerfile在docker容器中运行API服务器 从dockerfile创建doc


【文件预览】:
httpAPIserver-main
----Dockerfile(3KB)
----.gitignore(11B)
----main.go(648B)
----README.md(6KB)
----.env_example(86B)
----service.yaml(238B)
----LICENSE(11KB)
----api()
--------api_test.go(9KB)
--------api.go(7KB)
----server(11.86MB)
----go.mod(780B)
----go.sum(32KB)
----deployment.yaml(478B)
----Makefile(1KB)
----auth()
--------auth.go(2KB)
----cmd()
--------start.go(2KB)
--------root.go(3KB)

网友评论