app

package
v0.0.0-...-b235061 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

README

App Package

provides core functionality for the lifecycle ofthe microservices. handling startup, graceful shutdown and context cancellation.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Set = wire.NewSet(
	NewApp,
)

Functions

func NewApp

func NewApp(
	commander interfaces.Commander,
	config interfaces.Config,
	logger interfaces.Logger,
	serviceFactory interfaces.ServiceFactory,
) interfaces.App

Types

type App

type App struct {
	Commander      interfaces.Commander
	Config         interfaces.Config
	Logger         interfaces.Logger
	ServiceFactory interfaces.ServiceFactory
	Tracer         interfaces.Tracer
}

func (*App) Start

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

func (*App) Stop

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

Jump to

Keyboard shortcuts

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