app

package
v0.0.0-...-4f702ff Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Cfg    config.Configuration
	Domain Domain
	Auth   Auth
	Infra  *infrastructure.Infrastructure
}

App struct is the common part of all applications

func New

func New(ctx context.Context, cfg config.Configuration) *App

New func is a constructor for the App

func (*App) Init

func (app *App) Init(ctx context.Context) (err error)

func (*App) Run

func (app *App) Run() error

Run is func to run the App

func (*App) SetupRepositories

func (app *App) SetupRepositories() (err error)

func (*App) SetupServices

func (app *App) SetupServices(ctx context.Context) error

func (*App) Stop

func (app *App) Stop() error

type Auth

type Auth struct {
}

type Domain

type Domain struct {
	User user.IService

	Auth auth.Service

	Tg        tg.Service
	TgAccount tg_account.IService

	Advertiser advertiser.IService

	AdvertisingCampaign advertising_campaign.IService

	Offer offer.IService
	// contains filtered or unexported fields
}

Domain is a Domain Layer Entry Point

Directories

Path Synopsis
proto
jwt

Jump to

Keyboard shortcuts

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