code: 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,
  	}
  }
docs: // NewHandler creates a new handler.