Commit Graph

330 Commits (914692cc825e19b355d09d7b84a139ca2184b898)

Author SHA1 Message Date
anqiansong 07191dc430
fix #1305 (#1307)
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Kevin Wan 0240fa131a
chore: rename service context from ctx to svcCtx (#1299) 3 years ago
Kevin Wan 8086ad120b
Revert "feat: reduce dependencies of framework by add go.mod in goctl (#1290)" (#1291)
This reverts commit 87a445689c.
3 years ago
Kevin Wan 87a445689c
feat: reduce dependencies of framework by add go.mod in goctl (#1290) 3 years ago
Kevin Wan b6bda54870
chore: update cli version (#1287) 3 years ago
Kevin Wan 543d590710
fixes #987 (#1283)
* fixes #987

* chore: fix test failure

* chore: add comments
3 years ago
anqiansong f1d70eb6b2 Feature api root path (#1261) 3 years ago
Kevin Wan 86f9f63b46
Cli (#1272)
* Fix issue 1260 (#1262)

* Fix #1238 (#1266)

* docs: update readme to use goctl@cli (#1255)

* chore: update goctl version

* style: coding style

* docs: update readme to use goctl@cli

* fix #1238

* format code

* format code

Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
Co-authored-by: anqiansong <anqiansong@bytedance.com>

Co-authored-by: anqiansong <anqiansong@gmail.com>
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Kevin Wan 417a96cbf2
chore: update goctl version (#1250)
* chore: update goctl version

* style: coding style
3 years ago
anqiansong b0573af9a9
Update template (#1243) 3 years ago
anqiansong 0cb86c6990
reset link goctl (#1232) 3 years ago
Kevin Wan fa0c364982
fixes #1169 (#1229) 3 years ago
Kevin Wan a6c8113419
chore: refactor, better goctl message (#1228) 3 years ago
Kevin Wan d3bfa16813
feat: exit with non-zero code on errors (#1218)
* feat: exit with non-zero code on errors

* chore: use const for code
3 years ago
Kevin Wan f8367856e8
chore: refine code (#1215) 3 years ago
anqiansong 69a4d213a3
Fix issue 1205 (#1211)
* fix #1205

* move builder into stores

* remove xrom

* Remove unused code

* Remove unused code

* refactor builderx to builder

Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Kevin Wan c28e01fed3
feat: support CORS by using rest.WithCors(...) (#1212)
* feat: support CORS by using rest.WithCors(...)

* chore: add comments

* refactor: lowercase unexported methods

* ci: fix lint errors
3 years ago
Kevin Wan 4d22b0c497
feat: ignore rest.WithPrefix on empty prefix (#1208) 3 years ago
晨曦中 539215d7df
goctl docker command add -version (#1206)
* feature(优化): 优化goctl

goctl docker 命令新增version参数,指定builder golang 版本

* feature(优化): 优化goctl

goctl docker 命令新增version参数,指定builder golang 版本
3 years ago
anqiansong 01786c5e63
Generate route with prefix (#1200)
* Generate route with prefix

* Update api convert

* Remove TrimSpace

* Update path join

* Format code

* Format code

Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Kevin Wan b76c7ae55d
chore: remove semicolon for routes of services in api files (#1195) 3 years ago
Kevin Wan 7e3fe77e7b
chore: update goctl version to 1.2.3, prepare for release (#1193)
* feat: slow threshold customizable in rest

* chore: update goctl version to 1.2.3, prepare for release
3 years ago
anqiansong bef5bd4e4f
fix the package name of grpc client (#1170)
* fix the package name of grpc client

* Remove k8s/utils

Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
zeromake 9fd3f752d1
fix(goctl): repeat creation protoc-gen-goctl symlink (#1162) 3 years ago
anqiansong 9c48e9ceab
Feature add template version (#1152) 3 years ago
anqiansong a944a7fd7e
Mark deprecated syntax (#1148) 3 years ago
anqiansong 44202acb18
Fix issue #1127 (#1131)
* fix #1127

* fix #1127

* fixed unit test

* add go keyword converter

Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Kevin Wan 6a8638fc85
chore: refine rpc template in goctl (#1129) 3 years ago
chenquan d28cfe5f20
Add `opts ...grpc.CallOption` in grpc client (#1122)
* Add `opts ...grpc.CallOption` in grpc client

* Update format

* Update format

* Add import package

* Update format
3 years ago
Kevin Wan 426b09c356
update goctl version to 1.2.2 (#1125) 3 years ago
Kevin Wan ed15ca04f4
fix: opentelemetry traceid not correct (#1108) 3 years ago
小小小下 295ec27e1b
feat: reflection grpc service (#1107)
* feat: reflection grpc service

* feat: reflection grpc service
3 years ago
理工男 8d2db09d45
Update Makefile (#1098) 3 years ago
Kevin Wan 65905b914d
ci: add reviewdog (#1096) 3 years ago
z-micro 80e3407be1
fix bug: generating dart code error (#1090) 3 years ago
Amor 41c980f00c
update goctl api (#1052)
* update goctl api

* add LoadTemplate

* update new api template

* update
3 years ago
shenbaise9527 f34d81ca2c
chore: when run goctl-rpc, the order of proto message aliases should be (#1078)
fixed

Co-authored-by: steven <steven.zhou@1quant.com>
3 years ago
Kevin Wan 2e12cd2c99
coding style (#1083) 3 years ago
anqiansong e8a340c1c0
Create a symbol link file named protoc-gen-goctl from goctl (#1076) 3 years ago
anqiansong 9a724fe907
Add MustTempDir (#1069) 3 years ago
anqiansong 7fb5bab26b
fix #1058 (#1064) 3 years ago
Jerry Liang 5c6a3132eb
fix typo parse.go error message (#1041) 3 years ago
Kevin Wan 2bd95aa007
update goctl version to 1.2.1 (#1042) 3 years ago
Kevin Wan e8376936d5
remove goctl config command (#1035) 3 years ago
Kevin Wan 71c0288023
fix symlink issue on windows for goctl (#1034)
* fix symlink issue on windows for goctl

* move readlink into separate file
3 years ago
Kevin Wan 0b6bc69afa
reorg imports, format code (#1024) 3 years ago
anqiansong ded22e296e revert changes 3 years ago
anqiansong f0ed2370a3
fix #1014 (#1018)
* fix #1014

* remove unused code

* * optimize generate pb.go on Windows
* format code
* optimize console.go

* version rollback

Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Kevin Wan f6d9e19ecb
expose sql.DB to let orm operate on it (#1015)
* expose sql.DB to let orm operate on it

* add missing RawDB methods

* add NewSqlConnFromDB for cooperate with dtm
3 years ago
Kevin Wan 56807aabf6
fix golint issues, update codecov settings. (#1011)
* update codecov settings

* fix golint issues
3 years ago