Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface { GetPasteByHash(ctx context.Context, hash string) (paste.Paste, error) CreatePaste(ctx context.Context, entity paste.Paste) (paste.Paste, error) UpdatePaste(ctx context.Context, entity paste.Paste) (paste.Paste, error) DeletePaste(ctx context.Context, hash string) error }
func NewRepository ¶
func NewRepository(db db.Client, tx db.TxManager) Repository
Click to show internal directories.
Click to hide internal directories.