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

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