writer

package
v0.0.0-...-9db48c8 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrWriterNotFound = errors.Wrap(errors.ErrNotFound, "writer is not found")

	ErrWriterAlreadyExists = errors.Wrap(errors.ErrAlreadyExists, "writer already exists")
)

Functions

This section is empty.

Types

type WriterRepo

type WriterRepo struct {
	// contains filtered or unexported fields
}

func New

func New(db *sqlx.DB) *WriterRepo

func (*WriterRepo) CreateWriter

func (w *WriterRepo) CreateWriter(ctx context.Context, args model.Writer) (model.Writer, error)

func (*WriterRepo) DeleteWriter

func (w *WriterRepo) DeleteWriter(ctx context.Context, id int64) error

func (*WriterRepo) GetWriter

func (w *WriterRepo) GetWriter(ctx context.Context, id int64) (model.Writer, error)

func (*WriterRepo) ListWriters

func (w *WriterRepo) ListWriters(ctx context.Context) ([]model.Writer, error)

func (*WriterRepo) UpdateWriter

func (w *WriterRepo) UpdateWriter(ctx context.Context, args model.Writer) (model.Writer, error)

Jump to

Keyboard shortcuts

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