Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Type StorageType `envconfig:"TYPE" validate:"oneof=disk s3"` Disk struct { RootDir string `envconfig:"ROOT_DIR"` } `envconfig:"DISK"` S3 struct { BucketName string `envconfig:"BUCKET_NAME"` Region string `default:"ap-northeast-1" envconfig:"REGION"` } `envconfig:"S3"` }
type Storage ¶
type StorageType ¶
type StorageType string
const ( StorageTypeDisk StorageType = "disk" StorageTypeS3 StorageType = "s3" )
Click to show internal directories.
Click to hide internal directories.