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: 0

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