-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
贡献一段任意参数支持的代码思路;替换原本的pkg/infra/trafficGenerator/proposal.go:CreateProposal方法 #200
Labels
Comments
建议开个pr上来。
但是这样的话就没办法区分uuid,如果原本字符就是uuid的话。 |
这个可能不太容易实现所谓的通用正则,
正像我实现的那样,我们有三个基本函数,uuid(), randomInt(a,b), randomString(a),剩下还有一个就是组合使用这三个基本函数 ,也是对这三个方法调用的模式匹配。至于要不要以fmt开头,实际上是另外一个用以区分那三个方法的标记,因为我们除了随机方法,还有常量字符串。之所以选择了uuid(), randomInt(a,b)这种格式的匹配,是因为它更贴近与函数的表达。回头如果我们增加了第四个,第五个基础函数,也容易理解进来。
…________________________________
蒋帅
技术发展部(TDD)
东软集团股份有限公司
沈阳浑南新区新秀街2号东软软件园A1
Postcode:110179
Mobile:13211110015
Tel: 024-83660446
发件人: Sam ***@***.***>
发送时间: 2021-08-16 18:41
收件人: ***@***.***>
抄送: ***@***.***>; ***@***.***>
主题: Re: [Hyperledger-TWGC/tape] 贡献一段任意参数支持的代码思路;替换原本的pkg/infra/trafficGenerator/proposal.go:CreateProposal方法 (#200)
建议开个pr上来。
正则是很好的改进方向。
不过
既然我们选择了正则表达式,就不需要支持fmt在配置里了吧?
- (key:randomInt1_50)
- {"k1":"uuid","key2":"randomInt10000_20000","keys":" randomString10"}
但是这样的话就没办法区分uuid,如果原本字符就是uuid的话。
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#200 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AIC7FIBRLLW77OLSGNME7ITT5DTNPANCNFSM5CG27GOA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>.
---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s)
is intended only for the use of the intended recipient and may be confidential and/or privileged of
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication
is not the intended recipient,unauthorized use,forwarding, printing, storing, disclosure or copying
is strictly prohibited, and may be unlawful.If you have received this communication in error,please
immediately notify the sender by return e-mail, and delete the original message and all copies from
your system. Thank you.
---------------------------------------------------------------------------------------------------
|
我觉得如果要考虑json格式的话可能这样会比较方便,相比较于fmt,不知道@guoger什么看法。
|
SamYuan1990
added a commit
to SamYuan1990/tape
that referenced
this issue
Aug 24, 2021
Signed-off-by: Sam Yuan <[email protected]>
Merged
SamYuan1990
added a commit
that referenced
this issue
Aug 24, 2021
稍微做个了实现,在pr里。请参考。 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
davidkhala
pushed a commit
that referenced
this issue
Mar 23, 2022
davidkhala
pushed a commit
that referenced
this issue
Mar 23, 2022
* 109 to alpha (#189) * 1st impl for #109 Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * Arch refactor alpha (#190) * add crpto interface as repare for #127 Signed-off-by: Sam Yuan <[email protected]> * adding Worker interface for #56 and decouple Assembler and Integrator Signed-off-by: Sam Yuan <[email protected]> * refactor for worker interface Signed-off-by: Sam Yuan <[email protected]> * package structure Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * package refactor Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * remove Envelope from elements Signed-off-by: Sam Yuan <[email protected]> * add memeory free Signed-off-by: Sam Yuan <[email protected]> * remove Proposal from Elements Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * move start time to ctx Signed-off-by: Sam Yuan <[email protected]> * fix up for time setting (#191) * fix up Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * impl for #173 supports for configurable signers in parallel (#194) Signed-off-by: Sam Yuan <[email protected]> * adding for commit phase only dummy impl (#195) * adding for commit phase only dummy impl Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * impl for endorsement only Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * update document and prepare for release (#196) * update document and prepare for release Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * fix up in readme (#197) Signed-off-by: Sam Yuan <[email protected]> * impl for #200 (#207) Signed-off-by: Sam Yuan <[email protected]> * Impl173 (#208) * adjust code Signed-off-by: Sam Yuan <[email protected]> * code refactor Signed-off-by: Sam Yuan <[email protected]> * code refactor Signed-off-by: Sam Yuan <[email protected]> * use const instead Signed-off-by: Sam Yuan <[email protected]> * adding parallel flag Signed-off-by: Sam Yuan <[email protected]> * try to check escapes in ci (#209) * try to check escapes in ci Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * add benchmark test and adjust regex impl solution Signed-off-by: Sam Yuan <[email protected]> * attempt Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * 174 (#210) * use kingpin global flag and adding test case with timeout command Signed-off-by: Sam Yuan <[email protected]> * impl for #174 Signed-off-by: Sam Yuan <[email protected]> * adding test case Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * add signal listening Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * adding patch for #174 (#211) * adding patch for #174 Signed-off-by: Sam Yuan <[email protected]> * bug fix Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * impl for #213 (#214) * impl for #213 Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * add orderer observer into full workflow process (#216) * add orderer observer into full workflow process Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * impl for txid tracing at traffic generate (#218) * impl for txid tracing at traffic generate Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * try to add tx tracing for observer (#219) Signed-off-by: Sam Yuan <[email protected]> * nit fix (#220) Signed-off-by: Sam Yuan <[email protected]> * Nitfix for date format (#221) * use RFC3339Nano Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * impl for #223 (#225) * impl for #223 Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * fix up (#226) * fix up Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * fix up (#227) * fix up Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * fix up delete map to avoid OOM (#228) Signed-off-by: Sam Yuan <[email protected]> * update for git doc (#235) Signed-off-by: Sam Yuan <[email protected]> * impl for policy support (#237) * add plan Signed-off-by: Sam Yuan <[email protected]> * update ginkgo and add test for policy impl Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * try to impl with policy support Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]> * fix up Signed-off-by: Sam Yuan <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: