app

package
v0.0.0-...-7c0796b Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: MIT Imports: 16 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 {
	Config      *config.ServerConfig
	DBOrRAM     storage.Interface
	Repository  repositories.RepositoryInterface
	Services    *services.Services
	Controllers *handlers.Controllers
	Router      *router.Router
}

App is main instance of server app.

func New

func New() *App

New creates App instance, injects all dependencies.

func (*App) StartServer

func (a *App) StartServer(ctx context.Context) error

StartServer starts a server; has graceful shutdown

Jump to

Keyboard shortcuts

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