module

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: MIT Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decorate added in v0.6.0

func Decorate(decorators ...any) opt.Option[app.Module]

func Handlers

func Handlers(handlerProviders ...any) opt.Option[app.Module]

func Private

func Private(providers ...any) opt.Option[app.Module]

func Public

func Public(providers ...any) opt.Option[app.Module]

func Service

func Service[T any]() opt.Option[app.Module]

func SubModules

func SubModules(modules ...func() app.Module) opt.Option[app.Module]

func Supply

func Supply(suppliers ...any) opt.Option[app.Module]

Types

type OnStart

type OnStart interface {
	OnStart(ctx context.Context) error
}

type OnStartStop

type OnStartStop interface {
	OnStart
	OnStop
}

type OnStop

type OnStop interface {
	OnStop(ctx context.Context) error
}

Jump to

Keyboard shortcuts

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