controller

package
v0.0.0-...-930562d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2024 License: MIT Imports: 11 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL