app

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: Apache-2.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdapterModule

func AdapterModule() (fx.Option, error)

AdapterModule creates an Fx module that provides the K8S adapter and Decision Maker client

func ConfigModule

func ConfigModule(cfg config.ManageConfig) (fx.Option, error)

ConfigModule creates an Fx module that provides configuration structs

func HandlerModule

func HandlerModule(serviceModule fx.Option) (fx.Option, error)

HandlerModule creates an Fx module that provides the REST handler, return *rest.Handler

func NewRestApp

func NewRestApp(configName string, configDirPath string) (*fx.App, error)

func RepoModule

func RepoModule(cfg config.ManageConfig) (fx.Option, error)

RepoModule creates an Fx module that provides the repository layer, return repository.Repository

func ServiceModule

func ServiceModule(adapterModule, repoModule fx.Option) (fx.Option, error)

ServiceModule creates an Fx module that provides the service layer, return domain.Service

func StartRestApp

func StartRestApp(lc fx.Lifecycle, cfg config.ServerConfig, handler *rest.Handler) error

func TestRepoModule

func TestRepoModule(cfg config.ManageConfig, containerBuilder *container.ContainerBuilder) (fx.Option, error)

TestRepoModule creates an Fx module that provides the repository layer for testing, return repository.Repository

Types

This section is empty.

Jump to

Keyboard shortcuts

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