1 Star 0 Fork 1

yss930819/gf-ex

Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
flag_pub_size.go 555 Bytes
Copy Edit Raw Blame History
package ysgrpc
import (
"context"
"gitee.com/kmyss/gf-ex/yscmd"
)
type FlagPubSizeBuilder struct {
yscmd.FlagBuilderCore
}
func (b *FlagPubSizeBuilder) Init(ctx context.Context, group ...string) {
b.FlagBuilderCore.Init(ctx, group...)
b.F.ConfigNodeName = CONFIG_NODE_NAME
b.F.Long = "pub-size"
b.F.Description = `
MQ GRPC PUB 时的分隔大小`
b.F.DefaultValue = 3 * 1024 * 1024
}
func FlagPubSize(ctx context.Context, group ...string) *yscmd.Flag {
build := &FlagPubSizeBuilder{}
build.Init(ctx, group...)
return build.Flag()
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/kmyss/gf-ex.git
git@gitee.com:kmyss/gf-ex.git
kmyss
gf-ex
gf-ex
v1.0.5

Search