Documentation ¶
Index ¶
- type ProfileUseCase
- func (p ProfileUseCase) CreateProfile(ctx context.Context, profile *models.Profile) error
- func (p ProfileUseCase) DeleteProfile(ctx context.Context, id string) error
- func (p ProfileUseCase) GetProfile(ctx context.Context, id string) (*models.Profile, error)
- func (p ProfileUseCase) SearchProfile(ctx context.Context, firstName, lastName string) ([]*models.Profile, error)
- type ProfileUseCaseMock
- func (m *ProfileUseCaseMock) CreateProfile(ctx context.Context, profile *models.Profile) error
- func (m *ProfileUseCaseMock) DeleteProfile(ctx context.Context, id string) error
- func (m *ProfileUseCaseMock) GetProfile(ctx context.Context, id string) (*models.Profile, error)
- func (m *ProfileUseCaseMock) SearchProfile(ctx context.Context, firstName, lastName string) ([]*models.Profile, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProfileUseCase ¶
type ProfileUseCase struct {
// contains filtered or unexported fields
}
func NewProfileUseCase ¶
func NewProfileUseCase(profileRepo profile.Repository) *ProfileUseCase
func (ProfileUseCase) CreateProfile ¶
func (ProfileUseCase) DeleteProfile ¶
func (p ProfileUseCase) DeleteProfile(ctx context.Context, id string) error
func (ProfileUseCase) GetProfile ¶
func (ProfileUseCase) SearchProfile ¶
type ProfileUseCaseMock ¶
func (*ProfileUseCaseMock) CreateProfile ¶
func (*ProfileUseCaseMock) DeleteProfile ¶
func (m *ProfileUseCaseMock) DeleteProfile(ctx context.Context, id string) error
func (*ProfileUseCaseMock) GetProfile ¶
func (*ProfileUseCaseMock) SearchProfile ¶
Click to show internal directories.
Click to hide internal directories.