The reference implementation of the Nuts specification. A decentralized identity network based on the w3c ssi concepts with practical functionality for the healthcare domain.
We could homogenise New by passing a single *ServiceRegistry which points to all engines/services. New only fills structs and returns a pointer which is then added to the registry. After all New methods have been called. Configure is called which opens DB connections, reads files and does consistency checks. Then Start opens sockets, starts publishers and starts go routines.
By using *ServiceRegistry, New can also create sub-services that are now created in Configure.
We could homogenise
New
by passing a single*ServiceRegistry
which points to all engines/services.New
only fills structs and returns a pointer which is then added to the registry. After allNew
methods have been called.Configure
is called which opens DB connections, reads files and does consistency checks. ThenStart
opens sockets, starts publishers and starts go routines.By using
*ServiceRegistry
, New can also create sub-services that are now created in Configure.