repository

package
v0.0.0-...-c1af43a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 10 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL