ui/handler.go
func NewHandler(logger log.Logger, db *reform.DB,
	queue job.Queue, pwdStorage data.PWDGetSetter,
	encryptKeyFunc data.EncryptedKeyFunc,
	decryptKeyFunc data.ToPrivateKeyFunc, userRole string,
	processor *proc.Processor,
	somcClientBuilder somc.ClientBuilderInterface,
	token TokenMakeChecker) *Handler {
	logger = logger.Add("type", "ui.Handler")
	return &Handler{
		logger:            logger,
		db:                db,
		queue:             queue,
		pwdStorage:        pwdStorage,
		encryptKeyFunc:    encryptKeyFunc,
		decryptKeyFunc:    decryptKeyFunc,
		userRole:          userRole,
		processor:         processor,
		somcClientBuilder: somcClientBuilder,
		token:             token,
	}
}
func NewHandler(logger log.Logger, db *reform.DB,
	queue job.Queue, pwdStorage data.PWDGetSetter,
	encryptKeyFunc data.EncryptedKeyFunc,
	decryptKeyFunc data.ToPrivateKeyFunc, userRole string,
	processor *proc.Processor,
	somcClientBuilder somc.ClientBuilderInterface,
	token TokenMakeChecker) *Handler {
	logger = logger.Add("type", "ui.Handler")
	return &Handler{
		logger:            logger,
		db:                db,
		queue:             queue,
		pwdStorage:        pwdStorage,
		encryptKeyFunc:    encryptKeyFunc,
		decryptKeyFunc:    decryptKeyFunc,
		userRole:          userRole,
		processor:         processor,
		somcClientBuilder: somcClientBuilder,
		token:             token,
	}
}
func NewHandler ( logger log . Logger , db * reform . DB , queue job . Queue , pwdStorage data . PWDGetSetter , encryptKeyFunc data . EncryptedKeyFunc , decryptKeyFunc data . ToPrivateKeyFunc , userRole string , processor * proc . Processor , somcClientBuilder somc . ClientBuilderInterface , token TokenMakeChecker ) * Handler { logger = logger . Add ( " " , " " ) return & Handler { logger : logger , db : db , queue : queue , pwdStorage : pwdStorage , encryptKeyFunc : encryptKeyFunc , decryptKeyFunc : decryptKeyFunc , userRole : userRole , processor : processor , somcClientBuilder : somcClientBuilder , token : token , } }
// NewHandler creates a new handler.
NewHandler creates a new handler .