From d3fbede6bd5b39c40cde2e90aaf5c41066ed444a Mon Sep 17 00:00:00 2001 From: Youlin Feng Date: Fri, 6 Oct 2023 19:43:38 +0800 Subject: [PATCH] config mbbloom version --- internal/config/config.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/config/config.go b/internal/config/config.go index 1055462..5da7f7e 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -39,6 +39,10 @@ type AdvancedOptions struct { AwsPSync string `mapstructure:"aws_psync" default:""` // 10.0.0.1:6379@nmfu2sl5osync,10.0.0.1:6379@xhma21xfkssync } +type ModuleOptions struct { + MBbloomVersion int `mapstructure:"mbbloom_version" default:"10000"` // v1.0.0 +} + func (opt *AdvancedOptions) GetPSyncCommand(address string) string { items := strings.Split(opt.AwsPSync, ",") for _, item := range items { @@ -53,6 +57,7 @@ func (opt *AdvancedOptions) GetPSyncCommand(address string) string { type ShakeOptions struct { Function string `mapstructure:"function" default:""` Advanced AdvancedOptions + Module ModuleOptions } var Opt ShakeOptions