container

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package container provides the dependencies for the application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	Ctx                    context.Context
	Clocker                clock.Clock
	Translator             i18n.Translation
	Config                 config.ValidConfig
	Logger                 logger.Logger
	Store                  store.Store
	EncypterContainer      encrypt.Container
	AuthenticatorContainer auth.AuthenticatorContainer
	TargetContainer        target.Container
}

Container holds the dependencies for the application

func NewContainer

func NewContainer() *Container

NewContainer creates a new Container

func (*Container) Close

func (c *Container) Close() error

Close closes the Container

func (*Container) Init

func (c *Container) Init(cfg config.ValidConfig) error

Init initializes the Container

Jump to

Keyboard shortcuts

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