Documentation
¶
Index ¶
- func CoinGeckoEntityToModel(entity coin_gecko.CoinGeckoResponseEntity) coin_gecko.CoinGeckoResponse
- type Coins
- type CoinsPageableResponse
- type Handler
- type Page
- type Repository
- func (r *Repository) AddCoin(coin coin_gecko.CoinGeckoResponse) (map[string]interface{}, error)
- func (r *Repository) GetAllCoins() ([]coin_gecko.CoinGeckoResponse, error)
- func (r *Repository) GetSpotsByIDList(idList []string) ([]coin_gecko.CoinGeckoResponse, error)
- func (r *Repository) UpdateGeckoPrice(lowerSymbol string, price string) (*coin_gecko.CoinGeckoResponse, error)
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CoinGeckoEntityToModel ¶
func CoinGeckoEntityToModel(entity coin_gecko.CoinGeckoResponseEntity) coin_gecko.CoinGeckoResponse
Types ¶
type CoinsPageableResponse ¶
type Handler ¶
type Handler struct {
Service Service
}
func NewHandler ¶
func (*Handler) GetAllCoinHandler ¶
func (*Handler) GetAllSpotsHandler ¶
type Repository ¶
func NewRepository ¶
func NewRepository(uri string) Repository
func (*Repository) AddCoin ¶
func (r *Repository) AddCoin(coin coin_gecko.CoinGeckoResponse) (map[string]interface{}, error)
func (*Repository) GetAllCoins ¶
func (r *Repository) GetAllCoins() ([]coin_gecko.CoinGeckoResponse, error)
func (*Repository) GetSpotsByIDList ¶
func (r *Repository) GetSpotsByIDList(idList []string) ([]coin_gecko.CoinGeckoResponse, error)
func (*Repository) UpdateGeckoPrice ¶
func (r *Repository) UpdateGeckoPrice(lowerSymbol string, price string) (*coin_gecko.CoinGeckoResponse, error)
type Service ¶
type Service struct {
Repository Repository
}
func NewService ¶
func NewService(repository Repository) Service
func (*Service) GetAllCoins ¶
func (s *Service) GetAllCoins() ([]coin_gecko.CoinGeckoResponse, error)
func (*Service) GetAllSpots ¶
Click to show internal directories.
Click to hide internal directories.