appcontext

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppContext

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

func NewAppContext

func NewAppContext(
	ctx context.Context,
	embedFS *embed.FS,
	repository *repository.Repositories,
	services *service.Services,
	components *component.Components,
	servers *server.Server,
) (*AppContext, func())

NewAppContext initiate AppContext object

func (*AppContext) GetComponents

func (a *AppContext) GetComponents() *component.Components

func (*AppContext) GetCtx

func (a *AppContext) GetCtx() context.Context

func (*AppContext) Shutdown

func (a *AppContext) Shutdown()

func (*AppContext) Start

func (a *AppContext) Start()

type IAppContext

type IAppContext interface {
	GetCtx() context.Context
	GetComponents() *component.Components
	Start()
	Shutdown()
}

type IsProfilerActive

type IsProfilerActive bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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