repository

package
v0.0.0-...-2eeecd0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("model not found")

ErrNotFound represents `model not found` error. Comparision to ErrNotFound should be `IsErrNotFound(err)`, instead of `err == ErrNotFound`

Functions

func IsErrNotFound

func IsErrNotFound(err error) bool

IsErrNotFound reports whether the err is `model not found` error

func IsNotFound

func IsNotFound(err error) bool

IsNotFound reports whether the err is model not found error

Types

type Account

type Account interface {
	FindByAccountID(ctx context.Context, account *model.Account, accountID string) error
}

Account repository interface

Jump to

Keyboard shortcuts

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