Esempio n. 1
0
func main() {
	application, err := shadow.NewApplication(
		[]shadow.Resource{
			new(config.Resource),
			new(logger.Resource),
			new(metrics.Resource),
			new(template.Resource),
			new(alerts.Resource),
			new(workers.Resource),
			new(aws.Resource),
		},
		[]shadow.Service{
			new(frontend.FrontendService),
			new(system.SystemService),
			new(service.AwsService),
		},
		"Aws",
		"1.0",
		"12345-full",
	)

	if err != nil {
		log.Fatal(err.Error())
	}

	if err = application.Run(); err != nil {
		log.Fatal(err.Error())
	}
}
Esempio n. 2
0
func main() {
	application, err := shadow.NewApplication(
		[]shadow.Resource{
			new(resource.Config),
			new(resource.Logger),
			new(database.Database),
			new(resource.Template),
			new(resource.Dispatcher),
			new(r.SenderResource),
			new(dao.DaoResource),
		},
		[]shadow.Service{
			new(frontend.FrontendService),
			new(system.SystemService),
			new(apis.ApiService),
			new(service.SenderService),
		},
		"Sender",
		Version,
		Build,
	)

	if err != nil {
		log.Fatal(err.Error())
	}

	if err = application.Run(); err != nil {
		log.Fatal(err.Error())
	}
}
Esempio n. 3
0
func main() {
	application, err := shadow.NewApplication(
		[]shadow.Resource{
			new(config.Resource),
			new(logger.Resource),
			new(metrics.Resource),
			new(template.Resource),
			new(alerts.Resource),
		},
		[]shadow.Service{
			new(system.SystemService),
			new(frontend.FrontendService),
			new(service.ApiService),
		},
		"Api",
		Version,
		Build,
	)

	if err != nil {
		log.Fatal(err.Error())
	}

	if err = application.Run(); err != nil {
		log.Fatal(err.Error())
	}
}