rts:RTS:请求构造。 从JSON服务器响应生成Go结构

时间:2024-02-22 18:02:14
【文件属性】:

文件名称:rts:RTS:请求构造。 从JSON服务器响应生成Go结构

文件大小:172KB

文件格式:ZIP

更新时间:2024-02-22 18:02:14

cli json rest rts json-server

RTS:请求构造 从JSON服务器响应生成Go结构定义。 RTS使用路由文件中的指定行并跳过数字来定义类型名称。 例如:对/users/1/posts type UsersPosts的路由的请求生成type UsersPosts 它支持参数:类似于/users/:user/posts/:pid 1 200从对请求GET /users/1/posts/200的响应中生成type UsersUserPostsPid 。 RTS还支持标头个性化,因此它可以用于从受某种授权方法保护的响应中生成类型。 更新日期:2016/6/17 Krish Verma 如果JSON服务器是具有未知证书签名权限的HTTPS,请传递-insecure标志以禁用TLS证书检查 安装 CLI应用 go get -u github.com/galeone/rts/cmd/rts 图书馆 import "github.com/galeone/rts" byteFile , err := rts . Do ( pkg , server , lines , headerMap ) CLI用法 rts [opt


【文件预览】:
rts-master
----.travis.yml(50B)
----vendor()
--------gopkg.in()
--------github.com()
----cmd()
--------rts()
----routes.txt(34B)
----.github()
--------FUNDING.yml(720B)
----expected_out(6KB)
----rts.go(2KB)
----LICENSE(17KB)
----glide.lock(309B)
----expectedAuth_out(6KB)
----rts_test.go(1KB)
----glide.yaml(82B)
----rts_private.go(3KB)
----README.md(8KB)

网友评论