mirror of
https://github.com/gofiber/storage.git
synced 2025-10-05 08:37:10 +08:00
🚀 add dynamodb
This commit is contained in:
23
dynamodb/config.go
Normal file
23
dynamodb/config.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package dynamodb
|
||||
|
||||
// Config defines the config for storage.
|
||||
type Config struct {
|
||||
}
|
||||
|
||||
// ConfigDefault is the default config
|
||||
var ConfigDefault = Config{}
|
||||
|
||||
// configDefault is a helper function to set default values
|
||||
func configDefault(config ...Config) Config {
|
||||
// Return default config if nothing provided
|
||||
if len(config) < 1 {
|
||||
return ConfigDefault
|
||||
}
|
||||
|
||||
// Override default config
|
||||
cfg := config[0]
|
||||
|
||||
// Set default values
|
||||
|
||||
return cfg
|
||||
}
|
Reference in New Issue
Block a user