feat: s3 switch

This commit is contained in:
withchao
2025-01-02 16:26:48 +08:00
parent f3d5634e56
commit 819997adeb
4 changed files with 241 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
package main
import (
"flag"
"fmt"
"github.com/openimsdk/open-im-server/v3/tools/s3/internal"
"os"
)
func main() {
var (
name string
config string
)
flag.StringVar(&name, "name", "", "old previous storage name")
flag.StringVar(&config, "config", "", "config directory")
flag.Parse()
if err := internal.Main(config, name); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
fmt.Fprintln(os.Stdout, "success")
}