app

package
v0.0.0-...-e59009a Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2025 License: MIT Imports: 28 Imported by: 0

README

internal/app

В данной директории будет содержаться имплементация вашего сервиса

Documentation

Overview

Package app is the root package that composes all application components into a runnable service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

App represents the core application layer.

The struct combines all main components and manages their lifecycle: - HTTP server - gRPC server - Background workers - Configuration - Storage

Should be created once during application startup using New() and managed as a single unit.

func New

func New() (*App, error)

New constructs and initializes the complete application.

Steps performed: 1. Creates all storage layers 2. Initializes services 3. Configures HTTP routing 4. Configures gRPC server 5. Prepares background workers

Returns error if any component fails to initialize.

func (*App) Run

func (app *App) Run() error

Run starts the application services.

Launches: - HTTP server - gRPC server - Background deletion processor

Jump to

Keyboard shortcuts

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