Kevin Wan
e0454138e0
update goctl to go 1.16 for io/fs usage ( #1571 )
...
* update goctl to go 1.16 for io/fs usage
* feat: support pg serial type for auto_increment (#1563 )
* add correct example for pg's url
* 🐞 fix: merge
* 🐞 fix: pg default port
* ✨ feat: support serial type
Co-authored-by: kurimi1 <d0n41df@gmail.com>
* chore: format code
Co-authored-by: toutou_o <33993460+kurimi1@users.noreply.github.com>
Co-authored-by: kurimi1 <d0n41df@gmail.com>
2022-02-24 13:58:53 +08:00
Kevin Wan
a40254156f
refactor: refactor yaml unmarshaler ( #1517 )
2022-02-09 17:22:52 +08:00
anqiansong
77482c8946
fixes typo ( #1511 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-02-08 22:16:38 +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
b8ea16a88e
feat: Add --remote ( #1387 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2021-12-29 18:16:42 +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
anqiansong
dc43430812
optimize grpc generation env check ( #900 )
...
* optimize grpc generation env check
* optimize grpc generation env check
* format code
* fix postgresql data type convert error
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
2021-08-13 11:47:42 +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
neosu
00061c2e5b
add goctl rpc template home flag ( #871 )
...
Co-authored-by: suzhenpeng <suzhenpeng@ecoplants.tech>
2021-08-04 15:54:43 +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
anqiansong
9f4a882a1b
fix issue #831 ( #850 )
...
* fix issue #831
* fix typo
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
2021-07-28 16:32:15 +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
Bo-Yi Wu
73906f996d
chore(format): change by gofumpt tool ( #697 )
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2021-05-18 14:43:09 +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
Kevin Wan
54414db91d
fix golint issues, exported doc ( #451 )
2021-02-08 21:31:56 +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
kingxt
cecd4b1b75
goctl add plugin support ( #243 )
...
* add plugin support
* add plugin support
* add plugin support
* add plugin support
* add plugin support
* add plugin support
* add plugin support
* add plugin support
* add plugin support
* add plugin support
* add plugin support
* remove no need
* add plugin support
* rename
* rename
* add plugin support
* refactor
* update plugin
* refactor
* refactor
* refactor
* update plugin
* newline
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
2020-12-07 14:55:10 +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
kevin
c7831ac96d
update goctl readme
2020-11-15 21:18:02 +08:00
Keson
48f4154ea8
update doc ( #193 )
2020-11-08 13:02:48 +08:00
kingxt
7f6eceb5a3
add more test ( #189 )
...
* new test
* import bug when with quotation
* new test
* add test condition
* rpc template command use -o param
Co-authored-by: kim <xutao@xiaoheiban.cn>
2020-11-07 17:13:40 +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
Keson
e76f44a35b
reactor rpc ( #179 )
...
* reactor rpc generation
* update flag
* update command
* update command
* update unit test
* delete test file
* optimize code
* update doc
* update gen pb
* rename target dir
* update mysql data type convert rule
* add done flag
* optimize req/reply parameter
* optimize req/reply parameter
* remove waste code
* remove duplicate parameter
* format code
* format code
* optimize naming
* reactor rpcv2 to rpc
* remove new line
* format code
* rename underline to snake
* reactor getParentPackage
* remove debug log
* reactor background
2020-11-05 14:12:47 +08:00
Keson
607fc3297a
model template fix ( #169 )
...
* replace quote
* rpc disable override main.go
* reactor template
* add model flag -style
* add model flag -style
* reactor model template name of error
2020-10-27 22:42:53 +08:00
Keson
41964f9d52
gozero template ( #147 )
...
* model/rpc generate code from template cache
* delete unused(deprecated) code
* support template init|update|clean|revert
* model: return the execute result for insert and update operation
* // deprecated: containsAny
* add template test
* add default buildVersion
* update build version
2020-10-21 14:59:35 +08:00
kevin
dfe6e88529
use goctl template to generate all kinds of templates
2020-10-19 23:13:18 +08:00
mywaystay
7e83895c6e
update goctl rpc template log print url ( #133 )
2020-10-16 16:21:22 +08:00
sjatsh
338caf9927
delete goctl rpc main tpl no use import ( #130 )
2020-10-16 10:44:04 +08:00
kevin
f904710811
support api templates
2020-10-15 16:36:49 +08:00
kevin
936dd67008
simplify code generation
2020-10-12 11:39:50 +08:00
super_mario
84cc41df42
stop rpc server when main function exit ( #120 )
...
add defer s.Stop() to mainTemplate, in order to stop rpc server when main function exit
2020-10-12 11:37:43 +08:00
Keson
0a9c427443
Goctl rpc patch ( #117 )
...
* remove mock generation
* add: proto project import
* update document
* remove mock generation
* add: proto project import
* update document
* remove NL
* update document
* optimize code
* add test
* add test
2020-10-10 16:19:46 +08:00
Keson
9f9c24cce9
fix bug: release empty struct limit ( #96 )
2020-09-22 19:13:46 +08:00
kevin
0b1ee79d3a
rename rpcx to zrpc
2020-09-18 11:41:52 +08:00
kevin
a561884fcf
print message when starting api server
2020-09-16 13:27:16 +08:00
Sergey Cheung
21e811887c
Markdown lint ( #58 )
...
* markdown linter
* format markdown docs
* format exiting markdown docs
2020-09-11 19:42:58 +08:00
kevin
72aeac3fa9
add in-process cache doc
2020-09-11 15:30:20 +08:00
Keson
17e6cfb7a9
quickly generating rpc demo service ( #60 )
...
* add execute files
* add protoc-osx
* add rpc generation
* add rpc generation
* add: rpc template generation
* add README.md
* format error
* reactor templatex.go
* update project.go & README.md
* add: quickly generate rpc service
2020-09-11 15:26:55 +08:00
kingxt
4408767981
fix command run path bug ( #52 )
...
* rebase upstream
* rebase
* trim no need line
* trim no need line
* trim no need line
* optimized go path logic
Co-authored-by: kingxt <dream4kingxt@163.com>
2020-09-08 12:19:34 +08:00
kingxt
1602f6ce81
refactor gomod logic ( #47 )
...
* rebase upstream
* rebase
* trim no need line
* trim no need line
* trim no need line
* refactor gomod module logic
Co-authored-by: kingxt <dream4kingxt@163.com>
2020-09-07 18:04:59 +08:00
kevin
fe3e70a60f
update shorturl doc
2020-08-31 20:52:29 +08:00
kevin
36174ba5cc
make svcCtx as a member for better code generation
2020-08-31 12:32:13 +08:00
kevin
431be8ed9d
make goctl work on linux
2020-08-30 16:37:34 +08:00
kevin
6c4a4be5d2
update shorturl doc
2020-08-29 20:27:52 +08:00
kevin
6e3d99e869
reorg imports
2020-08-29 14:31:51 +08:00
Keson
0f97b2019a
rpc generation support windows ( #28 )
...
* add execute files
* add protoc-osx
* add rpc generation
* add rpc generation
* add: rpc template generation
* update usage
* fixed env prepare for project in go path
* optimize gomod cache
* add README.md
* format error
* reactor templatex.go
* remove waste code
* update project.go & README.md
* update project.go & README.md
* rpc generation supports windows
2020-08-29 14:30:17 +08:00
kevin
3affe62ae4
update shorturl doc
2020-08-29 00:28:57 +08:00
Keson
0734bbcab3
update handler generation ( #27 )
...
* add execute files
* add protoc-osx
* add rpc generation
* add rpc generation
* add: rpc template generation
* update usage
* fixed env prepare for project in go path
* optimize gomod cache
* add README.md
* format error
* reactor templatex.go
* remove waste code
* update project.go & README.md
* update project.go & README.md
2020-08-29 00:15:15 +08:00
kevin
f411178a4f
refine rpc generator
2020-08-28 22:44:41 +08:00
kevin
72132ce399
refine goctl rpc generator
2020-08-28 21:22:35 +08:00
Keson
db16115037
rpc service generation ( #26 )
...
* add execute files
* add protoc-osx
* add rpc generation
* add rpc generation
* add: rpc template generation
* update usage
* fixed env prepare for project in go path
* optimize gomod cache
* add README.md
* format error
* reactor templatex.go
* remove waste code
2020-08-28 19:24:58 +08:00