|
|
@ -21,6 +21,7 @@ import ( |
|
|
|
"encoding/gob" |
|
|
|
"encoding/gob" |
|
|
|
"errors" |
|
|
|
"errors" |
|
|
|
"fmt" |
|
|
|
"fmt" |
|
|
|
|
|
|
|
"math/rand" |
|
|
|
"net" |
|
|
|
"net" |
|
|
|
"net/url" |
|
|
|
"net/url" |
|
|
|
"os" |
|
|
|
"os" |
|
|
@ -33,6 +34,7 @@ import ( |
|
|
|
"github.com/minio/cli" |
|
|
|
"github.com/minio/cli" |
|
|
|
"github.com/minio/minio-go/v7/pkg/set" |
|
|
|
"github.com/minio/minio-go/v7/pkg/set" |
|
|
|
"github.com/minio/minio/cmd/config" |
|
|
|
"github.com/minio/minio/cmd/config" |
|
|
|
|
|
|
|
xhttp "github.com/minio/minio/cmd/http" |
|
|
|
"github.com/minio/minio/cmd/logger" |
|
|
|
"github.com/minio/minio/cmd/logger" |
|
|
|
"github.com/minio/minio/pkg/auth" |
|
|
|
"github.com/minio/minio/pkg/auth" |
|
|
|
"github.com/minio/minio/pkg/certs" |
|
|
|
"github.com/minio/minio/pkg/certs" |
|
|
@ -43,6 +45,9 @@ func init() { |
|
|
|
logger.Init(GOPATH, GOROOT) |
|
|
|
logger.Init(GOPATH, GOROOT) |
|
|
|
logger.RegisterError(config.FmtError) |
|
|
|
logger.RegisterError(config.FmtError) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
rand.Seed(time.Now().UTC().UnixNano()) |
|
|
|
|
|
|
|
globalDNSCache = xhttp.NewDNSCache(3*time.Second, 10*time.Second) |
|
|
|
|
|
|
|
|
|
|
|
gob.Register(StorageErr("")) |
|
|
|
gob.Register(StorageErr("")) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|