// Creating a process container
type MyProcess struct {
*container.ProcessContainer
}
func NewMyProcess() *MyProcess {
c := &MyProcess{
ProcessContainer: container.NewProcessContainer("myservice", "My service running as a process"),
}
c.SetConfigPath("./config.yaml")
c.AddFactory(NewMyClassFactory())
return c
}