예제 #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),
	}
}