repository

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// ErrInvalidUserID ...
	ErrInvalidUserID = errors.New("invalid user ID")
)

Functions

This section is empty.

Types

type ErrUserIDNotFound

type ErrUserIDNotFound int

ErrUserIDNotFound ...

func (ErrUserIDNotFound) Error

func (e ErrUserIDNotFound) Error() string

Error implements go-error interface.

type MockDBRepository

type MockDBRepository struct {
	DB *fakesql.DB
}

MockDBRepository ...

func (*MockDBRepository) FindUserByID

func (r *MockDBRepository) FindUserByID(ctx context.Context, id int) error

FindUserByID ...

Jump to

Keyboard shortcuts

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