s3-share/internal/db/db.go

15 lines
301 B
Go
Raw Normal View History

2022-05-09 12:52:18 +00:00
package db
import (
"context"
"git.kapelle.org/niklas/s3share/internal/types"
)
type DB interface {
GetShare(ctx context.Context, slug string) (*types.Share, error)
CreateShare(ctx context.Context, share *types.Share) error
DeleteShare(ctx context.Context, slug string) error
Close() error
}