Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppTokenController ¶
type AppTokenController interface {
GetAppToken(ctx *fasthttp.RequestCtx)
GetAllAppTokens(ctx *fasthttp.RequestCtx)
AddAppToken(ctx *fasthttp.RequestCtx)
UpdateAppToken(ctx *fasthttp.RequestCtx)
DeleteAppToken(ctx *fasthttp.RequestCtx)
CheckhHealthz(ctx *fasthttp.RequestCtx)
}
func NewAppTokenController ¶
func NewAppTokenController(appTokenService service.AppTokenService) AppTokenController
type CoinsController ¶
type CoinsController interface {
AddCoin(ctx *fasthttp.RequestCtx)
UpdateCoin(ctx *fasthttp.RequestCtx)
DeleteCoin(ctx *fasthttp.RequestCtx)
GetCoinByID(ctx *fasthttp.RequestCtx)
DeleteRedisKey(ctx *fasthttp.RequestCtx)
RefreshAllCoinsCache(ctx *fasthttp.RequestCtx)
RefreshCoinListCache(ctx *fasthttp.RequestCtx)
}
func NewCoinsController ¶
func NewCoinsController(coinsService service.CoinsService, redisClient *shared.RedisClient) CoinsController
type Controller ¶
type Controller struct {
Price PriceController
Coins CoinsController
Token AppTokenController
}
func NewController ¶
func NewController( priceService service.PriceService, coingeckoService service.CoinGeckoService, coinsService service.CoinsService, appTokenService service.AppTokenService, requestLogRepo repository.RequestLogRepository, redisClient *shared.RedisClient, logger zerolog.Logger) *Controller
type PriceController ¶
type PriceController interface {
GetCoinList(ctx *fasthttp.RequestCtx)
SyncCoins(ctx *fasthttp.RequestCtx)
GetBatchPrice(ctx *fasthttp.RequestCtx)
GetBatchHistoricalPrice(ctx *fasthttp.RequestCtx)
GetPrice(ctx *fasthttp.RequestCtx)
GetHistoricalPrice(ctx *fasthttp.RequestCtx)
}
func NewPriceController ¶
func NewPriceController(priceService service.PriceService, coinGeckoService service.CoinGeckoService, requestLogRepo repository.RequestLogRepository, logger zerolog.Logger) PriceController
Click to show internal directories.
Click to hide internal directories.