modules

package
v0.0.0-...-fb7f86c Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WireSet = wire.NewSet(
	ProvideService,
	wire.Bind(new(Engine), new(*service)),
	wire.Bind(new(Manager), new(*service)),
)

Functions

func ProvideService

func ProvideService(
	cfg *setting.Cfg,
	features *featuremgmt.FeatureManager,
) *service

Types

type Engine

type Engine interface {
	Init(context.Context) error
	Run(context.Context) error
	Shutdown(context.Context) error
}

type Manager

type Manager interface {
	RegisterModule(name string, initFn func() (services.Service, error), deps ...string)
	RegisterInvisibleModule(name string, initFn func() (services.Service, error), deps ...string)
}

Jump to

Keyboard shortcuts

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