Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface { RegisterUser(ctx context.Context, email, username, password string) error LoginUser(ctx context.Context, email, password string) (*model.User, error) AddLink(ctx context.Context, link *entity.Link) error RecoverLinks(ctx context.Context, user_id string) ([]model.Link, error) RecoverLink(ctx context.Context, slug string) (*model.Link, error) SearchLinksByDescription( ctx context.Context, description, user_id string, ) ([]model.Link, error) UpdateLink(ctx context.Context, description string, id int) error RemoveLink(ctx context.Context, slug, user_id string) error }
Service is the business logic of the application.
func New ¶
func New(repo repository.Repository) Service
Click to show internal directories.
Click to hide internal directories.