fusenapi/server/upload/internal/config/config.go

37 lines
731 B
Go
Raw Normal View History

package config
import (
"fusenapi/server/upload/internal/types"
"github.com/zeromicro/go-zero/rest"
)
type Config struct {
rest.RestConf
SourceMysql string
Auth types.Auth
2023-07-30 16:41:04 +00:00
ReplicaId uint64
Env string
AWS struct {
S3 struct {
Credentials struct {
AccessKeyID string
Secret string
Token string
}
}
}
2023-08-02 10:14:53 +00:00
BLMService struct {
2023-10-10 06:58:36 +00:00
Version string
2023-10-10 09:17:28 +00:00
Urls []string
2023-08-02 10:14:53 +00:00
}
2023-11-20 06:48:00 +00:00
AliyunOSS struct {
Endpoint string `json:"endpoint"`
AccessKeyId string `json:"access_key_id"`
AccessKeySecret string `json:"access_key_secret"`
BucketName string `json:"bucket_name"`
BucketUrl string `json:"bucket_url"`
BasePath string `json:"base_path"`
}
}