Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageReader ¶
type PhotoRepository ¶
type PhotoRepository interface { // Connect Opens a database connection Connect(readOnly bool) // Close Closes the database connection Close() CreateOrReplace(context.Context, model.Photo) error Get(ctx context.Context, hash string) (model.Photo, error) ReadContent(ctx context.Context, hash string, reader ImageReader) error Exists(ctx context.Context, hash string) bool List(context.Context) ([]model.Photo, error) }
Click to show internal directories.
Click to hide internal directories.