Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface { Close() error // Store stores a media in the database Store(ctx context.Context, media Media) error // Get returns a media from the database Get(ctx context.Context, hash []byte) (*Media, error) }
func NewPgRepository ¶
func NewPgRepository(address, user, password, database string) (Repository, error)
Click to show internal directories.
Click to hide internal directories.