middleware

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockApplicationError

type MockApplicationError struct {
	Msg      string
	CodeName string
}

MockApplicationError is a mock implementation of the ApplicationErrorInterface

func (*MockApplicationError) Code

func (e *MockApplicationError) Code() string

func (*MockApplicationError) Error

func (e *MockApplicationError) Error() string

func (*MockApplicationError) HTTPStatus

func (e *MockApplicationError) HTTPStatus() int

func (*MockApplicationError) IsApplicationError

func (e *MockApplicationError) IsApplicationError() bool

type MockNotFoundError

type MockNotFoundError struct {
	ResourceType string
	ID           string
}

MockNotFoundError is a mock implementation of the NotFoundErrorInterface

func (*MockNotFoundError) Code

func (e *MockNotFoundError) Code() string

func (*MockNotFoundError) Error

func (e *MockNotFoundError) Error() string

func (*MockNotFoundError) HTTPStatus

func (e *MockNotFoundError) HTTPStatus() int

func (*MockNotFoundError) IsNotFoundError

func (e *MockNotFoundError) IsNotFoundError() bool

type MockRepositoryError

type MockRepositoryError struct {
	Msg      string
	CodeName string
}

MockRepositoryError is a mock implementation of the RepositoryErrorInterface

func (*MockRepositoryError) Code

func (e *MockRepositoryError) Code() string

func (*MockRepositoryError) Error

func (e *MockRepositoryError) Error() string

func (*MockRepositoryError) HTTPStatus

func (e *MockRepositoryError) HTTPStatus() int

func (*MockRepositoryError) IsRepositoryError

func (e *MockRepositoryError) IsRepositoryError() bool

type MockValidationError

type MockValidationError struct {
	Msg string
}

MockValidationError is a mock implementation of the ValidationErrorInterface

func (*MockValidationError) Code

func (e *MockValidationError) Code() string

func (*MockValidationError) Error

func (e *MockValidationError) Error() string

func (*MockValidationError) HTTPStatus

func (e *MockValidationError) HTTPStatus() int

func (*MockValidationError) IsValidationError

func (e *MockValidationError) IsValidationError() bool

Jump to

Keyboard shortcuts

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