Documentation ¶
Index ¶
- type App
- func (a *App) AppCacheServiceInit() (err error)
- func (a *App) CurrencyUseCaseInit() error
- func (a *App) ProductControllerGetterInit() (err error)
- func (a *App) ProductControllerGetterRun(ctx context.Context) (err error)
- func (a *App) ProductUseCaseInit() error
- func (a *App) ServicesInit(cfg *config.Config) error
- func (a *App) SqlDBInit() (err error)
- func (a *App) UserCacheServiceInit() (err error)
- type AppInit
- type Services
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { Ctx context.Context Cfg *config.Config Router *httprouter.Router WebServer webController.Server // db CacheDB *redis.Client SqlDB *pgxpool.Pool // cache AppCacheService *appCacheService.Service UserCacheService *userCacheService.Service // services Services *Services // usaCase CurrencyUseCase *currencyUsecase.UseCase ProductUseCase *productUsecase.UseCase // api controllers ProductController *productServire.ProductServiceServer // contains filtered or unexported fields }
func (*App) AppCacheServiceInit ¶
AppCacheServiceInit - appCacheService initialization
func (*App) CurrencyUseCaseInit ¶
func (*App) ProductControllerGetterInit ¶
func (*App) ProductControllerGetterRun ¶
func (*App) ProductUseCaseInit ¶
func (*App) UserCacheServiceInit ¶
UserCacheServiceInit - userCacheService initialization
type Services ¶
type Services struct { Currency *currency_service.Service File *file_service.Service Folder *folder_service.Service ImageService *image_service.Service Price *price_service.Service PriceType *price_type_service.Service ProductImageService *product_image_service.Service ProductInfo *product_info_service.Service ShopPage *shop_page_service.Service StockQuantity *stock_quantity_service.Service Store *store_service.Service Tag *tag_service.Service TagSelect *tag_select_service.Service TagType *tag_type_service.Service Text *text_service.Service Warehouse *warehouse_service.Service }
Click to show internal directories.
Click to hide internal directories.