Commit Graph

51 Commits

Author SHA1 Message Date
anqiansong
194f55e08e
Remove unused code (#1667)
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-03-19 23:15:11 +08:00
anqiansong
227104d7d7
feat: Remove command goctl rpc proto (#1665)
* Fix goctl completion expression

* Fix code generation error if the pkg of pb/grpc is same to zrpc call client pkg

* Remove deprecated comment on action goctl rpc new

* Remove zrpc code generation on action goctl rpc proto

* Remove zrpc code generation on action goctl rpc proto

* Remove Generator interface

Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-03-19 22:50:22 +08:00
anqiansong
4624390e54
Fix #1585 #1547 (#1624) 2022-03-09 19:26:35 +08:00
Kevin Wan
3b7ca86e4f
chore: add unit tests (#1615)
* test: add more tests

* test: add more tests
2022-03-04 17:54:09 +08:00
Kevin Wan
a40254156f
refactor: refactor yaml unmarshaler (#1517) 2022-02-09 17:22:52 +08:00
Kevin Wan
4b7a680ac5
refactor: rename from tal-tech to zeromicro for goctl (#1481) 2022-01-25 23:15:07 +08:00
anqiansong
9b592b3dee
Feature rpc protoc (#1251)
* code generation by protoc

* generate pb by protoc direct

* support: grpc code generation by protoc directly

* format code

* check --go_out & --go-grpc_out

* fix typo

* Update version

* fix typo

* optimize: remove deprecated unit test

* format code

Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-01-11 20:34:25 +08:00
Kevin Wan
a91c3907a8
feat: rename module from tal-tech to zeromicro (#1413) 2022-01-04 15:51:32 +08:00
anqiansong
89ce5e492b
refactor file|path (#1409)
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-01-03 21:32:40 +08:00
anqiansong
0cb86c6990
reset link goctl (#1232) 2021-11-13 18:39:07 +08:00
Kevin Wan
f8367856e8
chore: refine code (#1215) 2021-11-08 23:12:13 +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
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
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
Kevin Wan
65905b914d
ci: add reviewdog (#1096) 2021-09-29 13:09:20 +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
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
anqiansong
84d2b64e7c
optimize unit test (#999) 2021-09-06 14:20:21 +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
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
_ksco
cc264dcf55
refactor (#878)
* refactor(tools ): refactor cod

Improve code readability and performance

* fix(tools ): fix len bug

Co-authored-by: ksco <hyang@33.cn>
2021-08-11 17:33:18 +08:00
neosu
16cc990fdd
fix context missing (#872)
Co-authored-by: suzhenpeng <suzhenpeng@ecoplants.tech>
2021-08-04 17:46:51 +08:00
anqiansong
c8428a7f65
fix issue #861 (#862)
* fix issue #861

* fix issue #861

Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
2021-08-01 23:00:57 +08:00
neosu
e481b63b21
Fix the error stream method name (#826) 2021-07-18 22:05:28 +08:00
Kevin Wan
e47079f0f4
go format with extra rules (#821) 2021-07-17 20:51:23 +08:00
anqiansong
db87fd3239
To generate grpc stream, fix issue #616 (#815)
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
2021-07-16 22:54:07 +08:00
Chen Quan
b0e335e7b0
Fix rpc generator bug (#799)
* Fix rpc自动生成generate bug

* Delete mock
2021-07-10 13:12:52 +08:00
anqiansong
efdf475da4
Add --go_opt flag to adapt to the version after 1.4.0 of protoc-gen-go (#767)
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
2021-07-08 10:11:11 +08:00
anqiansong
9f6a574f97
resolve #610 (#684) 2021-05-13 18:42:05 +08:00
Bo-Yi Wu
afd9ff889e
chore: update code format. (#628) 2021-04-15 19:49:17 +08:00
anqiansong
dd393351cc
patch 1.1.5 (#530) 2021-03-01 21:14:07 +08:00
kingxt
e6ef1fca12
Code optimized (#523)
* optimized markdown generator

* optimized markdown generator

* optimized markdown generator

* add more comment

* add comment

* add comment

* add comments for rpc tool

* add comments for model tool

* add comments for model tool

* add comments for model tool

* add comments for config tool

* add comments for config tool

* add comments

* add comments

* add comments

* add comments

* add comment

* remove rpc main head info

* add comment

* optimized

Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
2021-02-26 16:11:47 +08:00
FengZhang
a926cb514f
modify the goctl gensvc template (#323) 2020-12-30 10:05:26 +08:00
songmeizi
b56cc8e459
optimize test case of TestRpcGenerate (#279)
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
2020-12-11 21:57:04 +08:00
Kevin Wan
da8f76e6bd
add category docker & kube (#276) 2020-12-11 18:53:40 +08:00
Kevin Wan
65ee877236
refactor & format code (#255) 2020-12-08 23:01:25 +08:00
Keson
2dfecda465
modify the service name from proto (#230) 2020-11-28 11:48:44 +08:00
kingxt
b9ac51b6c3
feature: file namestyle (#223)
* add api filename style

* new feature: config.yaml

* optimize

* optimize logic generation

* check hanlder valid

* optimize

* reactor naming style

* optimize

* optimize test

* optimize gen middleware

* format

Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
Co-authored-by: kim <xutao@xiaoheiban.cn>
2020-11-24 15:11:18 +08:00
Keson
24fb29a356
patch model&rpc (#207)
* change column to read from information_schema

* reactor generate mode from datasource

* reactor generate mode from datasource

* add primary key check logic

* resolve rebase conflicts

* add naming style

* add filename test case

* resolve rebase conflicts

* reactor test

* add test case

* change shell script to makefile

* update rpc new

* update gen_test.go

* format code

* format code

* update test

* generates alias
2020-11-18 15:32:53 +08:00
Keson
856b5aadb1
rpc generation fix (#184)
* reactor alert

* optimize

* add test case

* update the target directory in case proto contains option

* fix missing comments and format code
2020-11-05 19:08:34 +08:00
Keson
f7d778e0ed
fix duplicate alias (#183) 2020-11-05 18:12:23 +08:00