Beispiel #1
0
func NewService(deps *Dependencies) *Service {
	s := &Service{
		cfg:    deps.Config,
		Client: deps.Client,
		Store:  store.New(deps.Client),
	}
	return s
}
Beispiel #2
0
func NewService(deps *Dependencies) *Service {
	return &Service{
		Client: deps.Client,
		Store:  store.New(deps.Client),

		Clusters: NewClusterGenerator(),
	}
}
Beispiel #3
0
func NewConfigStore(c *sarif.Client) *ConfigStore {
	return &ConfigStore{
		Store:      store.New(c),
		ConfigName: c.DeviceId,
	}
}
Beispiel #4
0
func NewService(deps *Dependencies) *Scheduler {
	return &Scheduler{
		Client: deps.Client,
		Store:  store.New(deps.Client),
	}
}