paste

package
v0.0.0-...-0213d94 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 4 Imported by: 0

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

Jump to

Keyboard shortcuts

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