s3-share/internal/types/types.go

26 lines
400 B
Go
Raw Permalink Normal View History

2022-05-09 12:52:18 +00:00
package types
type Share struct {
Slug string `json:"slug"`
Key string `json:"key"`
}
2022-05-09 14:10:05 +00:00
type AppConfig struct {
S3Endpoint string
S3AccessKey string
S3SecretKey string
S3SSL bool
S3Bucket string
Address string
2022-05-12 21:37:59 +00:00
APIUsername string
APIPassword string
2022-05-15 22:27:52 +00:00
DSN string
2022-05-09 14:10:05 +00:00
}
2022-05-10 10:49:34 +00:00
type Metadata struct {
Size int64
ContentType string
Filename string
2022-05-10 20:46:28 +00:00
ETag string
2022-05-10 10:49:34 +00:00
}