Documentation ¶
Overview ¶
Package usecases is a generated GoMock package.
Package usecases is a generated GoMock package.
Package usecases is a generated GoMock package.
Package usecases is a generated GoMock package.
Index ¶
- Variables
- type ErrorReporter
- type MockErrorReporter
- type MockErrorReporterMockRecorder
- type MockResumeInteractor
- type MockResumeInteractorMockRecorder
- type MockResumeRepository
- type MockResumeRepositoryMockRecorder
- type MockValidator
- type MockValidatorMockRecorder
- type ResumeInteractor
- type ResumeRepository
- type Validatable
- type Validator
Constants ¶
This section is empty.
Variables ¶
var ErrResumeNotFound = fail.New("no resume could be found")
ErrResumeNotFound for when no resume could be found
Functions ¶
This section is empty.
Types ¶
type ErrorReporter ¶
type ErrorReporter interface {
Capture(err error)
}
ErrorReporter sends off errors for later inspection
type MockErrorReporter ¶
type MockErrorReporter struct {
// contains filtered or unexported fields
}
MockErrorReporter is a mock of ErrorReporter interface
func NewMockErrorReporter ¶
func NewMockErrorReporter(ctrl *gomock.Controller) *MockErrorReporter
NewMockErrorReporter creates a new mock instance
func (*MockErrorReporter) Capture ¶
func (m *MockErrorReporter) Capture(err error)
Capture mocks base method
func (*MockErrorReporter) EXPECT ¶
func (m *MockErrorReporter) EXPECT() *MockErrorReporterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockErrorReporterMockRecorder ¶
type MockErrorReporterMockRecorder struct {
// contains filtered or unexported fields
}
MockErrorReporterMockRecorder is the mock recorder for MockErrorReporter
func (*MockErrorReporterMockRecorder) Capture ¶
func (mr *MockErrorReporterMockRecorder) Capture(err interface{}) *gomock.Call
Capture indicates an expected call of Capture
type MockResumeInteractor ¶
type MockResumeInteractor struct {
// contains filtered or unexported fields
}
MockResumeInteractor is a mock of ResumeInteractor interface
func NewMockResumeInteractor ¶
func NewMockResumeInteractor(ctrl *gomock.Controller) *MockResumeInteractor
NewMockResumeInteractor creates a new mock instance
func (*MockResumeInteractor) EXPECT ¶
func (m *MockResumeInteractor) EXPECT() *MockResumeInteractorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockResumeInteractor) TrackedFind ¶
func (m *MockResumeInteractor) TrackedFind(slug, ipAddress, userAgent string) (*domain.Resume, error)
TrackedFind mocks base method
type MockResumeInteractorMockRecorder ¶
type MockResumeInteractorMockRecorder struct {
// contains filtered or unexported fields
}
MockResumeInteractorMockRecorder is the mock recorder for MockResumeInteractor
func (*MockResumeInteractorMockRecorder) TrackedFind ¶
func (mr *MockResumeInteractorMockRecorder) TrackedFind(slug, ipAddress, userAgent interface{}) *gomock.Call
TrackedFind indicates an expected call of TrackedFind
type MockResumeRepository ¶
type MockResumeRepository struct {
// contains filtered or unexported fields
}
MockResumeRepository is a mock of ResumeRepository interface
func NewMockResumeRepository ¶
func NewMockResumeRepository(ctrl *gomock.Controller) *MockResumeRepository
NewMockResumeRepository creates a new mock instance
func (*MockResumeRepository) EXPECT ¶
func (m *MockResumeRepository) EXPECT() *MockResumeRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockResumeRepository) FindBySlug ¶
func (m *MockResumeRepository) FindBySlug(slug string) (domain.Resume, error)
FindBySlug mocks base method
func (*MockResumeRepository) StoreResume ¶
func (m *MockResumeRepository) StoreResume(resume *domain.Resume) error
StoreResume mocks base method
func (*MockResumeRepository) StoreResumeLog ¶
func (m *MockResumeRepository) StoreResumeLog(log *domain.ResumeLog) error
StoreResumeLog mocks base method
type MockResumeRepositoryMockRecorder ¶
type MockResumeRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockResumeRepositoryMockRecorder is the mock recorder for MockResumeRepository
func (*MockResumeRepositoryMockRecorder) FindBySlug ¶
func (mr *MockResumeRepositoryMockRecorder) FindBySlug(slug interface{}) *gomock.Call
FindBySlug indicates an expected call of FindBySlug
func (*MockResumeRepositoryMockRecorder) StoreResume ¶
func (mr *MockResumeRepositoryMockRecorder) StoreResume(resume interface{}) *gomock.Call
StoreResume indicates an expected call of StoreResume
func (*MockResumeRepositoryMockRecorder) StoreResumeLog ¶
func (mr *MockResumeRepositoryMockRecorder) StoreResumeLog(log interface{}) *gomock.Call
StoreResumeLog indicates an expected call of StoreResumeLog
type MockValidator ¶
type MockValidator struct {
// contains filtered or unexported fields
}
MockValidator is a mock of Validator interface
func NewMockValidator ¶
func NewMockValidator(ctrl *gomock.Controller) *MockValidator
NewMockValidator creates a new mock instance
func (*MockValidator) EXPECT ¶
func (m *MockValidator) EXPECT() *MockValidatorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockValidator) Validate ¶
func (m *MockValidator) Validate(target Validatable) (bool, error)
Validate mocks base method
func (*MockValidator) ValidateStruct ¶
func (m *MockValidator) ValidateStruct(s interface{}) (bool, error)
ValidateStruct mocks base method
type MockValidatorMockRecorder ¶
type MockValidatorMockRecorder struct {
// contains filtered or unexported fields
}
MockValidatorMockRecorder is the mock recorder for MockValidator
func (*MockValidatorMockRecorder) Validate ¶
func (mr *MockValidatorMockRecorder) Validate(target interface{}) *gomock.Call
Validate indicates an expected call of Validate
func (*MockValidatorMockRecorder) ValidateStruct ¶
func (mr *MockValidatorMockRecorder) ValidateStruct(s interface{}) *gomock.Call
ValidateStruct indicates an expected call of ValidateStruct
type ResumeInteractor ¶
type ResumeInteractor interface {
TrackedFind(slug, ipAddress, userAgent string) (*domain.Resume, error)
}
ResumeInteractor contains all business logic for resumes
func NewResumeInteractor ¶
func NewResumeInteractor(resumeRepository ResumeRepository) ResumeInteractor
NewResumeInteractor initializer
type ResumeRepository ¶
type ResumeRepository interface { FindBySlug(slug string) (domain.Resume, error) StoreResume(resume *domain.Resume) error StoreResumeLog(log *domain.ResumeLog) error }
ResumeRepository handles Resume related database interactions
type Validatable ¶
Validatable knows how to validate itself