Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetadataRepository ¶
type MetadataRepository interface { DeletePasteByKey(key string) error DeleteAndReturnExpiredKeys() ([]string, error) IsKeyValid(v *validator.Validator, key string) }
func NewMetadataRepository ¶
func NewMetadataRepository(db *sql.DB) MetadataRepository
type StorageRepository ¶
type StorageRepository interface { DeletePasteByKey(key string, bucket string) error DeleteExpiredPastes(keys []string, bucket string) error }
func NewS3Storage ¶
func NewS3Storage(bucket, region string) (StorageRepository, error)
Click to show internal directories.
Click to hide internal directories.