/container/FacadeProcess.go
package container
import (
ffactory "github.com/pip-services-samples/pip-samples-facade-go/build"
cproc "github.com/pip-services3-gox/pip-services3-container-gox/container"
mbuild "github.com/pip-services3-gox/pip-services3-mongodb-gox/build"
rpcbuild "github.com/pip-services3-gox/pip-services3-rpc-gox/build"
)
type FacadeProcess struct {
*cproc.ProcessContainer
}
func NewFacadeProcess() *FacadeProcess {
c := FacadeProcess{}
c.ProcessContainer = cproc.NewProcessContainer("pip-facades-example", "Public facade for pip-vault 2.0")
c.AddFactory(ffactory.NewClientFacadeFactory())
c.AddFactory(ffactory.NewServiceFacadeFactory())
c.AddFactory(ffactory.NewFacadeFactory())
c.AddFactory(rpcbuild.NewDefaultRpcFactory())
c.AddFactory(mbuild.NewDefaultMongoDbFactory())
return &c
}