container

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

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

Container lazily constructs and caches application dependencies during sequential startup. It is not safe for concurrent initialization.

Container owns dependencies only. Assembling them into a running API server is the composition root's job - see BuildAPIServer in the servecmd package.

TODO(HYPERFLEET-1371): Once the environments/ package is removed, Container should source SessionFactory directly (e.g. from config/Viper) rather than accepting it as a constructor parameter. Close() should also close the SessionFactory at that point.

func NewContainer

func NewContainer(cfg *config.ApplicationConfig, sessionFactory db.SessionFactory) *Container

func (*Container) AdapterStatusDao

func (c *Container) AdapterStatusDao() dao.AdapterStatusDao

func (*Container) AdapterStatusService

func (c *Container) AdapterStatusService() services.AdapterStatusService

func (*Container) Close

func (c *Container) Close()

func (*Container) GenericDao

func (c *Container) GenericDao() dao.GenericDao

func (*Container) GenericService

func (c *Container) GenericService() services.GenericService

func (*Container) JWTHandler

func (c *Container) JWTHandler() (*auth.JWTHandler, error)

func (*Container) ResourceConditionDao

func (c *Container) ResourceConditionDao() dao.ResourceConditionDao

func (*Container) ResourceDao

func (c *Container) ResourceDao() dao.ResourceDao

func (*Container) ResourceLabelDao

func (c *Container) ResourceLabelDao() dao.ResourceLabelDao

func (*Container) ResourceService

func (c *Container) ResourceService() services.ResourceService

func (*Container) SchemaValidator

func (c *Container) SchemaValidator() (*validators.SchemaValidator, error)

func (*Container) SessionFactory

func (c *Container) SessionFactory() db.SessionFactory

Jump to

Keyboard shortcuts

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