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

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