container

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: MIT Imports: 3 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 interface {
	GetLogger() *zap.SugaredLogger

	GetPostRepository() repository.PostRepository
	GetUserRepository() repository.UserRepository

	GetJWTUtils() jwt.TokenUtils
}

Container interface defining core application utilities such as logging and DB connectivity

func CreateContainer

func CreateContainer(
	log *zap.SugaredLogger,
	postRepository repository.PostRepository,
	userRepository repository.UserRepository,
	jwtUtils jwt.TokenUtils,
) Container

CreateContainer instantiates the application container with all its necessary dependencies.

Jump to

Keyboard shortcuts

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