Kevin Wan
a6c8113419
chore: refactor, better goctl message ( #1228 )
2021-11-11 22:58:33 +08:00
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
2021-11-09 22:42:44 +08:00
Kevin Wan
f8367856e8
chore: refine code ( #1215 )
2021-11-08 23:12:13 +08:00
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>
2021-11-07 22:44:37 +08:00
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
2021-11-07 22:42:40 +08:00
Kevin Wan
4d22b0c497
feat: ignore rest.WithPrefix on empty prefix ( #1208 )
2021-11-06 21:31:35 +08:00
晨曦中
539215d7df
goctl docker command add -version ( #1206 )
...
* feature(优化): 优化goctl
goctl docker 命令新增version参数,指定builder golang 版本
* feature(优化): 优化goctl
goctl docker 命令新增version参数,指定builder golang 版本
2021-11-06 21:28:32 +08:00
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>
2021-11-03 20:57:03 +08:00
Kevin Wan
b76c7ae55d
chore: remove semicolon for routes of services in api files ( #1195 )
2021-11-01 20:37:05 +08:00
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
2021-11-01 18:26:08 +08:00
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>
2021-10-30 21:35:05 +08:00
zeromake
9fd3f752d1
fix(goctl): repeat creation protoc-gen-goctl symlink ( #1162 )
2021-10-29 09:56:51 +08:00
anqiansong
9c48e9ceab
Feature add template version ( #1152 )
2021-10-29 09:55:41 +08:00
anqiansong
a944a7fd7e
Mark deprecated syntax ( #1148 )
2021-10-20 10:58:25 +08:00
anqiansong
44202acb18
Fix issue #1127 ( #1131 )
...
* fix #1127
* fix #1127
* fixed unit test
* add go keyword converter
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2021-10-13 20:48:47 +08:00
Kevin Wan
6a8638fc85
chore: refine rpc template in goctl ( #1129 )
2021-10-12 22:13:14 +08:00
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
2021-10-12 21:52:50 +08:00
Kevin Wan
426b09c356
update goctl version to 1.2.2 ( #1125 )
2021-10-12 14:00:35 +08:00
Kevin Wan
ed15ca04f4
fix: opentelemetry traceid not correct ( #1108 )
2021-10-01 22:44:37 +08:00
小小小下
295ec27e1b
feat: reflection grpc service ( #1107 )
...
* feat: reflection grpc service
* feat: reflection grpc service
2021-10-01 22:02:04 +08:00
理工男
8d2db09d45
Update Makefile ( #1098 )
2021-09-29 18:04:08 +08:00
Kevin Wan
65905b914d
ci: add reviewdog ( #1096 )
2021-09-29 13:09:20 +08:00
z-micro
80e3407be1
fix bug: generating dart code error ( #1090 )
2021-09-28 09:01:27 +08:00
Amor
41c980f00c
update goctl api ( #1052 )
...
* update goctl api
* add LoadTemplate
* update new api template
* update
2021-09-23 14:31:11 +08:00
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>
2021-09-23 14:24:21 +08:00
Kevin Wan
2e12cd2c99
coding style ( #1083 )
2021-09-23 11:19:57 +08:00
anqiansong
e8a340c1c0
Create a symbol link file named protoc-gen-goctl from goctl ( #1076 )
2021-09-21 23:13:31 +08:00
anqiansong
9a724fe907
Add MustTempDir ( #1069 )
2021-09-21 10:13:43 +08:00
anqiansong
7fb5bab26b
fix #1058 ( #1064 )
2021-09-19 08:53:41 +08:00
Jerry Liang
5c6a3132eb
fix typo parse.go error message ( #1041 )
2021-09-14 10:26:44 +08:00
Kevin Wan
2bd95aa007
update goctl version to 1.2.1 ( #1042 )
2021-09-14 08:32:56 +08:00
Kevin Wan
e8376936d5
remove goctl config command ( #1035 )
2021-09-13 14:04:06 +08:00
Kevin Wan
71c0288023
fix symlink issue on windows for goctl ( #1034 )
...
* fix symlink issue on windows for goctl
* move readlink into separate file
2021-09-13 11:49:07 +08:00
Kevin Wan
0b6bc69afa
reorg imports, format code ( #1024 )
2021-09-11 21:28:47 +08:00
anqiansong
ded22e296e
revert changes
2021-09-11 20:57:58 +08:00
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>
2021-09-11 12:48:32 +08:00
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
2021-09-09 11:40:28 +08:00
Kevin Wan
56807aabf6
fix golint issues, update codecov settings. ( #1011 )
...
* update codecov settings
* fix golint issues
2021-09-07 22:33:02 +08:00
Kevin Wan
96a35ecf1a
fix #1006 ( #1008 )
...
* use sdktrace instead of trace for opentelemetry to avoid conflicts
* disable opentelemetry for right now
* use os.ModeSymlink instead of fs.ModeSymlink for backward compatibility
2021-09-07 15:38:40 +08:00
Kevin Wan
bdec5f2349
use sdktrace instead of trace for opentelemetry to avoid conflicts ( #1005 )
...
* use sdktrace instead of trace for opentelemetry to avoid conflicts
* disable opentelemetry for right now
2021-09-07 12:02:41 +08:00
shenbaise9527
bc92b57bdb
api文件中使用group时生成的handler和logic的包名应该为group的名字 ( #545 )
...
* api文件中使用group时生成的handler和logic的包名应该为group的名字
* Update genhandlers.go
fix errors.
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
2021-09-07 11:03:04 +08:00
neosu
d8905b9e9e
add api template file ( #1003 )
2021-09-07 10:16:10 +08:00
Kevin Wan
10805577f5
reorg imports, format code ( #1000 )
2021-09-06 14:56:46 +08:00
anqiansong
84d2b64e7c
optimize unit test ( #999 )
2021-09-06 14:20:21 +08:00
toven tang
d179b342b2
修复使用 postgres 数据库时,位置参数重复,导致参数与值不对应的问题。 ( #960 )
...
* 修复使用 postgres 数据库时,位置参数重复,导致参数与值不对应的问题。
* 修复使用 postgres 数据库时,位置参数重复,导致参数与值不对应的问题。
Co-authored-by: toven <toven@advan.onaliyun.com>
2021-09-05 22:27:59 +08:00
anqiansong
8829c31c0d
Feature goctl error wrap ( #995 )
...
* Add `Wrap` in file errorx.go
* Wrap error with `GoctlError`
* format code
* Refactor package `env` to `version`
* Refactor package `IsVersionGatherThan`
* fix typo
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2021-09-05 21:57:44 +08:00
Kevin Wan
0325d8e92d
format code, and reorg imports ( #991 )
2021-09-04 10:08:49 +08:00
anqiansong
2125977281
Fix filepath ( #990 )
2021-09-04 08:15:22 +08:00
Vee Zhang
c26c187e11
remote handler blank line when .HasRequest is false ( #986 )
2021-09-03 07:25:04 +08:00
miaogaolin
423955c55f
format code ( #979 )
2021-08-31 17:15:36 +08:00