di

package
v0.0.0-...-e3c39ba Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PricerSet = wire.NewSet(di.DefaultSet, rpc.InitServer, pkg_di.ReadConfig, newDiscountPolicy,
	newTaxPolicy,
	newPolicyNames,

	NewRunRPCServer, application.NewCartService, newCLIHandler,

	NewPricerService,
)

PricerService =======================================================================================================

Functions

func NewRunRPCServer

func NewRunRPCServer(runRPCServer *rpc.Server) (*run.Response, error)

TODO: refactoring. maybe drop this function

Types

type PricerService

type PricerService struct {
	// Common
	Log        logger.Logger
	Config     *config.Config
	AutoMaxPro autoMaxPro.AutoMaxPro

	// Observability
	Tracer        trace.TracerProvider
	Monitoring    *monitoring.Monitoring
	PprofEndpoint profiling.PprofEndpoint

	// Application
	CartService *application.CartService

	// CLI
	CLIHandler *cli.CLIHandler
	// contains filtered or unexported fields
}

func InitializePricerService

func InitializePricerService() (*PricerService, func(), error)

func NewPricerService

func NewPricerService(

	log logger.Logger, config2 *config.Config,
	autoMaxProcsOption autoMaxPro.AutoMaxPro, monitoring2 *monitoring.Monitoring,
	tracer trace.TracerProvider,
	pprofHTTP profiling.PprofEndpoint, run2 *run.Response,

	cartService *application.CartService,

	cliHandler *cli.CLIHandler,
) (*PricerService, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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