Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service interface { // Check if the request of is appropriate Validate(usernames []string) error // Return the list of details by username ShowDetails(usernames []string) ([]domain.User, error) }
Define a service interface for the business logic
func NewService ¶
func NewService(repository api.Repository, caching cache.Repository, logger zerolog.Logger) Service
Define a constructor to inject the Repository to this service
Click to show internal directories.
Click to hide internal directories.