Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrProfileNotFound = errors.New("profile not found")
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface { CreateProfile(ctx context.Context, profile *models.Profile) error GetProfile(ctx context.Context, id string) (*models.Profile, error) DeleteProfile(ctx context.Context, id string) error SearchProfile(ctx context.Context, firstName, lastName string) ([]*models.Profile, error) }
type UseCase ¶
type UseCase interface { CreateProfile(ctx context.Context, profile *models.Profile) error GetProfile(ctx context.Context, id string) (*models.Profile, error) DeleteProfile(ctx context.Context, id string) error SearchProfile(ctx context.Context, firstName, lastName string) ([]*models.Profile, error) }
Click to show internal directories.
Click to hide internal directories.