TG settlement service

This commit is contained in:
Stephan D
2026-01-02 14:54:18 +01:00
parent ea1c69f14a
commit 743f683d92
82 changed files with 4693 additions and 503 deletions

View File

@@ -27,6 +27,7 @@ type APIImp struct {
services Microservices
debug bool
mw *Middleware
router *chi.Mux
}
func (a *APIImp) installMicroservice(srv mservice.MicroService) {
@@ -69,6 +70,10 @@ func (a *APIImp) Register() messaging.Register {
return a.mw
}
func (a *APIImp) Router() *chi.Mux {
return a.router
}
func (a *APIImp) installServices() error {
srvf := make([]api.MicroServiceFactoryT, 0)
@@ -117,6 +122,7 @@ func CreateAPI(logger mlogger.Logger, config *api.Config, l localizer.Localizer,
p.config = config
p.db = db
p.localizer = l
p.router = router
var err error
if p.domain, err = domainprovider.CreateDomainProvider(p.logger, config.Mw.DomainEnv, config.Mw.APIProtocolEnv, config.Mw.EndPointEnv); err != nil {