Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlistStorageConfig ¶
type AlistStorageConfig struct {
BaseConfig
URL string `toml:"url" mapstructure:"url" json:"url"`
Username string `toml:"username" mapstructure:"username" json:"username"`
Password string `toml:"password" mapstructure:"password" json:"password"`
Token string `toml:"token" mapstructure:"token" json:"token"`
BasePath string `toml:"base_path" mapstructure:"base_path" json:"base_path"`
TokenExp int64 `toml:"token_exp" mapstructure:"token_exp" json:"token_exp"`
}
func (*AlistStorageConfig) GetName ¶
func (a *AlistStorageConfig) GetName() string
func (*AlistStorageConfig) GetType ¶
func (a *AlistStorageConfig) GetType() storenum.StorageType
func (*AlistStorageConfig) Validate ¶
func (a *AlistStorageConfig) Validate() error
type BaseConfig ¶
type LocalStorageConfig ¶
type LocalStorageConfig struct {
BaseConfig
BasePath string `toml:"base_path" mapstructure:"base_path" json:"base_path"`
}
func (*LocalStorageConfig) GetName ¶
func (l *LocalStorageConfig) GetName() string
func (*LocalStorageConfig) GetType ¶
func (l *LocalStorageConfig) GetType() storenum.StorageType
func (*LocalStorageConfig) Validate ¶
func (l *LocalStorageConfig) Validate() error
type MinioStorageConfig ¶
type MinioStorageConfig struct {
BaseConfig
Endpoint string `toml:"endpoint" mapstructure:"endpoint" json:"endpoint"`
AccessKeyID string `toml:"access_key_id" mapstructure:"access_key_id" json:"access_key_id"`
SecretAccessKey string `toml:"secret_access_key" mapstructure:"secret_access_key" json:"secret_access_key"`
BucketName string `toml:"bucket_name" mapstructure:"bucket_name" json:"bucket_name"`
UseSSL bool `toml:"use_ssl" mapstructure:"use_ssl" json:"use_ssl"`
BasePath string `toml:"base_path" mapstructure:"base_path" json:"base_path"`
}
func (*MinioStorageConfig) GetName ¶
func (m *MinioStorageConfig) GetName() string
func (*MinioStorageConfig) GetType ¶
func (m *MinioStorageConfig) GetType() storenum.StorageType
func (*MinioStorageConfig) Validate ¶
func (m *MinioStorageConfig) Validate() error
type StorageConfig ¶
type StorageConfig interface {
Validate() error
GetType() storenum.StorageType
GetName() string
}
func LoadStorageConfigs ¶
func LoadStorageConfigs(v *viper.Viper) ([]StorageConfig, error)
type TelegramStorageConfig ¶ added in v0.23.0
type TelegramStorageConfig struct {
BaseConfig
ChatID int64 `toml:"chat_id" mapstructure:"chat_id" json:"chat_id"`
RateLimit int `toml:"rate_limit" mapstructure:"rate_limit" json:"rate_limit"`
RateBurst int `toml:"rate_burst" mapstructure:"rate_burst" json:"rate_burst"`
}
func (*TelegramStorageConfig) GetName ¶ added in v0.23.0
func (m *TelegramStorageConfig) GetName() string
func (*TelegramStorageConfig) GetType ¶ added in v0.23.0
func (m *TelegramStorageConfig) GetType() storenum.StorageType
func (*TelegramStorageConfig) Validate ¶ added in v0.23.0
func (m *TelegramStorageConfig) Validate() error
type WebdavStorageConfig ¶
type WebdavStorageConfig struct {
BaseConfig
URL string `toml:"url" mapstructure:"url" json:"url"`
Username string `toml:"username" mapstructure:"username" json:"username"`
Password string `toml:"password" mapstructure:"password" json:"password"`
BasePath string `toml:"base_path" mapstructure:"base_path" json:"base_path"`
}
func (*WebdavStorageConfig) GetName ¶
func (w *WebdavStorageConfig) GetName() string
func (*WebdavStorageConfig) GetType ¶
func (w *WebdavStorageConfig) GetType() storenum.StorageType
func (*WebdavStorageConfig) Validate ¶
func (w *WebdavStorageConfig) Validate() error
Click to show internal directories.
Click to hide internal directories.