app

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bind

func Bind[T any](app contracts.Application, name string, provider Provider[T])

func Make

func Make[T any](app contracts.Application, name string) (T, error)

func MustMake

func MustMake[T any](app contracts.Application, name string) T

Types

type Application

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

func NewApplication

func NewApplication(ctx context.Context, i *do.Injector, cfg map[string]interface{}) *Application

func (*Application) Config

func (app *Application) Config() map[string]interface{}

func (*Application) Context

func (app *Application) Context() context.Context

func (*Application) Injector

func (app *Application) Injector() *do.Injector

func (*Application) ListProvidedServices

func (app *Application) ListProvidedServices() []string

func (*Application) Services

func (app *Application) Services() contracts.ApplicationServices

func (*Application) Shutdown added in v1.8.0

func (app *Application) Shutdown() error

type Provider

type Provider[T any] func(application contracts.Application) (T, error)

Directories

Path Synopsis
Package errors contains all the errors that can be returned by the application This error handled and sent to the client by the framework
Package errors contains all the errors that can be returned by the application This error handled and sent to the client by the framework
Package responses contains helper functions to create response that can be returned by the application
Package responses contains helper functions to create response that can be returned by the application

Jump to

Keyboard shortcuts

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