cdi

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2023 License: GPL-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIUsecase

type APIUsecase struct {
	management.PartnerManager
	management.ParamManager
	management.H2HManager
	management.WorkflowManager
	workflow.CashbackProvider
	PartnerOnboardProvider     partner.OnboardProvider
	PartnerTransactionProvider partner.TransactionProvider
	ClientOnboardProvider      client.OnboardProvider
	ClientTransactionProvider  client.TransactionProvider
	H2HFactory                 h2h.Factory
}

type Container

type Container struct {
	Logger     *zap.Logger
	HttpLogger fiber.Handler
	Viper      *viper.Viper
	// contains filtered or unexported fields
}

func NewContainer

func NewContainer(app string) Container

func (*Container) LoadCognito

func (c *Container) LoadCognito(region string) *cognito.CognitoIdentityProvider

func (*Container) LoadEnv

func (c *Container) LoadEnv() Env

func (*Container) LoadInfra

func (c *Container) LoadInfra() Infra

func (*Container) LoadRedis

func (c *Container) LoadRedis() (rds storage.Cacher)

func (*Container) RegisterAPIUsecase

func (c *Container) RegisterAPIUsecase(infra Infra, cacher storage.Cacher) APIUsecase

func (*Container) RegisterJobUsecase

func (c *Container) RegisterJobUsecase(infra Infra, cacher storage.Cacher) JobUsecase

type Env

type Env struct {
	ContextPath string
	HttpPort    string
}

type JobUsecase

type JobUsecase struct {
	JobOnboardWatcher     job.OnboardWatcher
	JobTransactionWatcher job.TransactionWatcher
	JobTierWatcher        job.TierWatcher
	H2HFactory            h2h.Factory
}

Jump to

Keyboard shortcuts

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