Commit Graph

308 Commits

Author SHA1 Message Date
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
Kevin Wan
7618139dad
refactor (#977) 2021-08-31 12:04:09 +08:00
Kevin Wan
519db812b4
format coding style (#969) 2021-08-27 23:09:47 +08:00
anqiansong
3203f8e06b
Fix issues (#965) 2021-08-27 15:05:54 +08:00
chenquan
b71ac2042a
Add a test case for database code generation tool (#961) 2021-08-27 06:50:09 +08:00
Kevin Wan
bf3ce16823
fix #820 (#934) 2021-08-19 22:48:21 +08:00
anqiansong
189721da16
Fix issues (#931)
* fix #929

* fix #925

* add test case

* update model README

* fix #929

* fix #929

* fix #929

* refactor dir

* Adding todo comments

Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
2021-08-19 22:47:45 +08:00
anqiansong
b2fea65faa
Optimize model naming (#910)
* add unit test

* fix #907

* format code

* format code

* format code

Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
2021-08-18 17:09:34 +08:00
anqiansong
a1fe8bf6cd
fix missing updateMethodTemplateFile (#924) 2021-08-18 12:23:43 +08:00
Kevin Wan
9c1ee50497
refactor (#920) 2021-08-17 10:24:12 +08:00
anqiansong
14ec29991c
fix #915 (#917) 2021-08-16 15:07:11 +08:00