Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FavCoinDTO ¶
type FavCoinEntity ¶
type Handler ¶
type Handler struct {
Service Service
}
func NewHandler ¶
func (*Handler) CreateFavCoinHandler ¶
func (*Handler) GetFavlistHandler ¶
type Repository ¶
func NewRepository ¶
func NewRepository(uri string) Repository
func (*Repository) CreateFavCoin ¶
func (r *Repository) CreateFavCoin(favCoin FavCoin) (*FavCoin, error)
func (*Repository) GetFavCoinWithID ¶
func (r *Repository) GetFavCoinWithID(ID string) (*FavCoin, error)
func (*Repository) GetFavlistHistory ¶
func (r *Repository) GetFavlistHistory(UserID string) ([]FavCoin, error)
type Service ¶
type Service struct {
Repository Repository
}
func NewService ¶
func NewService(repository Repository) Service
func (*Service) CreateFavCoin ¶
func (s *Service) CreateFavCoin(favCoinDTO FavCoinDTO) (*FavCoin, error)
Click to show internal directories.
Click to hide internal directories.