2017-07-30 08:13:44 +00:00
|
|
|
package server
|
|
|
|
|
2017-08-14 12:39:37 +00:00
|
|
|
import (
|
|
|
|
configurationapi "github.com/ehazlett/element/api/services/configuration"
|
|
|
|
"golang.org/x/net/context"
|
|
|
|
)
|
2017-07-30 08:13:44 +00:00
|
|
|
|
2017-08-14 12:39:37 +00:00
|
|
|
func (s *Server) CreateService(ctx context.Context, req *configurationapi.CreateServiceRequest) (*configurationapi.CreateServiceResponse, error) {
|
|
|
|
// TODO
|
|
|
|
// save to datastore
|
|
|
|
if err := s.store.SaveService(req.Service); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return nil, nil
|
2017-07-30 08:13:44 +00:00
|
|
|
}
|
|
|
|
|
2017-08-14 12:39:37 +00:00
|
|
|
func (s *Server) ListServices(ctx context.Context, req *configurationapi.ListServicesRequest) (*configurationapi.ListServicesResponse, error) {
|
|
|
|
// TODO
|
|
|
|
return nil, nil
|
2017-07-30 08:13:44 +00:00
|
|
|
}
|