Documentation ¶
Index ¶
- func IsErrDuplicate(err error) bool
- func IsErrFatal(err error) bool
- func IsErrNotFound(err error) bool
- func IsErrUseCase(err error) bool
- type CreateUserUseCase
- type DeleteUserUseCase
- type EntityDuplicateError
- type EntityNotFoundError
- type ErrorType
- type FatalError
- type GetUserUseCase
- type ListUsersUseCase
- type UseCaseError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsErrDuplicate ¶
func IsErrFatal ¶
func IsErrNotFound ¶
func IsErrUseCase ¶
Types ¶
type CreateUserUseCase ¶
* CreateUser *
func NewCreateUserUseCase ¶
func NewCreateUserUseCase(usersWriter entity.UsersWriter) CreateUserUseCase
type DeleteUserUseCase ¶
* DeleteUser *
func NewDeleteUserUseCase ¶
func NewDeleteUserUseCase(usersWriter entity.UsersWriter) DeleteUserUseCase
type EntityDuplicateError ¶
type EntityDuplicateError struct {
// contains filtered or unexported fields
}
* EntityDuplicateError *
func NewErrDuplicateEntity ¶
func NewErrDuplicateEntity(entityName string, params map[string]string) EntityDuplicateError
func ToErrDuplicateEntity ¶
func ToErrDuplicateEntity(err UseCaseError) EntityDuplicateError
func (EntityDuplicateError) EntityName ¶
func (e EntityDuplicateError) EntityName() string
func (EntityDuplicateError) Params ¶
func (e EntityDuplicateError) Params() map[string]string
type EntityNotFoundError ¶
type EntityNotFoundError struct {
// contains filtered or unexported fields
}
* EntityNotFoundError *
func NewErrNotFoundEntity ¶
func NewErrNotFoundEntity(entityName string, params map[string]string) EntityNotFoundError
func ToErrNotFoundEntity ¶
func ToErrNotFoundEntity(err UseCaseError) EntityNotFoundError
func (EntityNotFoundError) EntityName ¶
func (e EntityNotFoundError) EntityName() string
func (EntityNotFoundError) Params ¶
func (e EntityNotFoundError) Params() map[string]string
type FatalError ¶
type FatalError struct {
// contains filtered or unexported fields
}
* Fatal error *
func NewErrFatal ¶
func NewErrFatal(message string) FatalError
func ToErrFatal ¶
func ToErrFatal(err UseCaseError) FatalError
type GetUserUseCase ¶
* GetUser *
func NewGetUserUseCase ¶
func NewGetUserUseCase(usersReader entity.UsersReader) GetUserUseCase
type ListUsersUseCase ¶
* ListUsers *
func NewListUsersUseCase ¶
func NewListUsersUseCase(usersReader entity.UsersReader) ListUsersUseCase
type UseCaseError ¶
* Use case error *
func ToUseCaseError ¶
func ToUseCaseError(err error) UseCaseError
Click to show internal directories.
Click to hide internal directories.