di

package
v0.0.0-...-39079ff Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2025 License: Apache-2.0 Imports: 18 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 {
	*di.Container

	Config config.Config
	Logger zerolog.Logger

	DB     *gorm.DB
	RDB    redis.UniversalClient
	Dialer *gomail.Dialer
	Consul *api.Client

	Bundle         locale.Bundle
	TemplateEngine template.Engine
	Sender         smtp.Sender
	Manager        cache.Manager
	Registry       discovery.Registry
	Scheduler      *scheduler.Scheduler

	Repos     *Repositories
	Providers *Providers
	SVCs      *Services
	Handlers  Handlers
}

func NewContainer

func NewContainer(cfg config.Config) *Container

type Handlers

type Handlers []handler2.APIHandler

type Providers

type Providers struct {
	JWT   provider.JwtProvider
	OAuth map[string]provider.OAuthProvider
}

type Repositories

type Repositories struct {
	User        repo.UserRepository
	BannedToken repo.BannedTokenRepository
}

type Services

type Services struct {
	Account service.AccountService
	Auth    service.AuthService
	Health  service.HealthService
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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