github.com/voedger/voedger@v0.0.0-20240520144910-273e84102129/pkg/in10nmem/v1/provide.go (about)

     1  /*
     2   * Copyright (c) 2021-present Sigma-Soft, Ltd.
     3   * Aleksei Ponomarev
     4   */
     5  
     6  package in10nmemv1
     7  
     8  import (
     9  	"time"
    10  
    11  	"github.com/voedger/voedger/pkg/in10n"
    12  )
    13  
    14  func Provide(quotas in10n.Quotas) (in10n.IN10nBroker) {
    15  	return ProvideEx(quotas, time.Now)
    16  }
    17  
    18  func ProvideEx(quotas in10n.Quotas, now func() time.Time) (in10n.IN10nBroker) {
    19  	return NewN10nBroker(quotas, now)
    20  }