Documentation ¶
Overview ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- type ProjectManagementService
- func (s *ProjectManagementService) AddDevice(ctx context.Context, in *pb.AddDeviceRequest) (*pb.AddDeviceResponse, error)
- func (s *ProjectManagementService) AddDevices(ctx context.Context, in *pb.AddDevicesRequest) (*pb.AddDevicesResponse, error)
- func (s *ProjectManagementService) AddWorkshop(ctx context.Context, in *pb.AddWorkshopRequest) (*pb.AddWorkshopResponse, error)
- func (s *ProjectManagementService) CreateProject(ctx context.Context, in *pb.CreateProjectRequest) (*pb.CreateProjectResponse, error)
- func (s *ProjectManagementService) CreateVariable(ctx context.Context, in *pb.CreateVariableRequest) (*pb.CreateVariableResponse, error)
- func (s *ProjectManagementService) CreateView(ctx context.Context, in *pb.CreateViewRequest) (*pb.CreateViewResponse, error)
- func (s *ProjectManagementService) DeleteDevice(ctx context.Context, in *pb.DeleteDeviceRequest) (*pb.DeleteDeviceResponse, error)
- func (s *ProjectManagementService) DeleteDevices(ctx context.Context, in *pb.DeleteDevicesRequest) (*pb.DeleteDevicesResponse, error)
- func (s *ProjectManagementService) DeleteProject(ctx context.Context, in *pb.DeleteProjectRequest) (*pb.DeleteProjectResponse, error)
- func (s *ProjectManagementService) DeleteVariable(ctx context.Context, in *pb.DeleteVariableRequest) (*pb.DeleteVariableResponse, error)
- func (s *ProjectManagementService) DeleteVariables(ctx context.Context, in *pb.DeleteVariablesRequest) (*pb.DeleteVariablesResponse, error)
- func (s *ProjectManagementService) DeleteView(ctx context.Context, in *pb.DeleteViewRequest) (*pb.DeleteViewResponse, error)
- func (s *ProjectManagementService) DeleteWorkshop(ctx context.Context, in *pb.DeleteWorkshopRequest) (*pb.DeleteWorkshopResponse, error)
- func (s *ProjectManagementService) GetDevices(ctx context.Context, in *pb.GetDevicesRequest) (*pb.GetDevicesResponse, error)
- func (s *ProjectManagementService) GetProject(ctx context.Context, in *pb.GetProjectRequest) (*pb.GetProjectResponse, error)
- func (s *ProjectManagementService) GetProjects(ctx context.Context, in *pb.GetProjectsRequest) (*pb.GetProjectsResponse, error)
- func (s *ProjectManagementService) GetVariable(ctx context.Context, in *pb.GetVariableRequest) (*pb.GetVariableResponse, error)
- func (s *ProjectManagementService) GetVariables(ctx context.Context, in *pb.GetVariablesRequest) (*pb.GetVariablesResponse, error)
- func (s *ProjectManagementService) GetView(ctx context.Context, in *pb.GetViewRequest) (*pb.GetViewResponse, error)
- func (s *ProjectManagementService) GetViews(ctx context.Context, in *pb.GetViewsRequest) (*pb.GetViewsResponse, error)
- func (s *ProjectManagementService) GetWorkshop(ctx context.Context, in *pb.GetWorkshopRequest) (*pb.GetWorkshopResponse, error)
- func (s *ProjectManagementService) GetWorkshops(ctx context.Context, in *pb.GetWorkshopsRequest) (*pb.GetWorkshopsResponse, error)
- func (s *ProjectManagementService) UpdateProject(ctx context.Context, in *pb.UpdateProjectRequest) (*pb.UpdateProjectResponse, error)
- func (s *ProjectManagementService) UpdateVariable(ctx context.Context, in *pb.UpdateVariableRequest) (*pb.UpdateVariableResponse, error)
- func (s *ProjectManagementService) UpdateView(ctx context.Context, in *pb.UpdateViewRequest) (*pb.UpdateViewResponse, error)
- func (s *ProjectManagementService) UpdateWorkshop(ctx context.Context, in *pb.UpdateWorkshopRequest) (*pb.UpdateWorkshopResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProjectManagementService ¶
type ProjectManagementService struct{}
ProjectManagementService implement grpc service for pms
func NewProjectManagementService ¶
func NewProjectManagementService(servingOptions *modeloptions.ServingOptions) *ProjectManagementService
NewProjectManagementService return service instance used in main server
func (*ProjectManagementService) AddDevice ¶
func (s *ProjectManagementService) AddDevice(ctx context.Context, in *pb.AddDeviceRequest) (*pb.AddDeviceResponse, error)
AddDevice add a device into the project
func (*ProjectManagementService) AddDevices ¶
func (s *ProjectManagementService) AddDevices(ctx context.Context, in *pb.AddDevicesRequest) (*pb.AddDevicesResponse, error)
AddDevices add a batch of devices into the project
func (*ProjectManagementService) AddWorkshop ¶
func (s *ProjectManagementService) AddWorkshop(ctx context.Context, in *pb.AddWorkshopRequest) (*pb.AddWorkshopResponse, error)
Workshop AddWorkshop add a workshop into the project
func (*ProjectManagementService) CreateProject ¶
func (s *ProjectManagementService) CreateProject(ctx context.Context, in *pb.CreateProjectRequest) (*pb.CreateProjectResponse, error)
CreateProject create a new project
func (*ProjectManagementService) CreateVariable ¶
func (s *ProjectManagementService) CreateVariable(ctx context.Context, in *pb.CreateVariableRequest) (*pb.CreateVariableResponse, error)
Variables CreateVariable create a new variable in view or project
func (*ProjectManagementService) CreateView ¶
func (s *ProjectManagementService) CreateView(ctx context.Context, in *pb.CreateViewRequest) (*pb.CreateViewResponse, error)
CreateView create a new project's view
func (*ProjectManagementService) DeleteDevice ¶
func (s *ProjectManagementService) DeleteDevice(ctx context.Context, in *pb.DeleteDeviceRequest) (*pb.DeleteDeviceResponse, error)
DeleteDevice remove a device from project
func (*ProjectManagementService) DeleteDevices ¶
func (s *ProjectManagementService) DeleteDevices(ctx context.Context, in *pb.DeleteDevicesRequest) (*pb.DeleteDevicesResponse, error)
DeleteDevices remove a batch of devices from project
func (*ProjectManagementService) DeleteProject ¶
func (s *ProjectManagementService) DeleteProject(ctx context.Context, in *pb.DeleteProjectRequest) (*pb.DeleteProjectResponse, error)
DeleteProject delete specified project
func (*ProjectManagementService) DeleteVariable ¶
func (s *ProjectManagementService) DeleteVariable(ctx context.Context, in *pb.DeleteVariableRequest) (*pb.DeleteVariableResponse, error)
DeleteVariable delete a variable in view or project
func (*ProjectManagementService) DeleteVariables ¶
func (s *ProjectManagementService) DeleteVariables(ctx context.Context, in *pb.DeleteVariablesRequest) (*pb.DeleteVariablesResponse, error)
DeleteVariables delete a batch of variables
func (*ProjectManagementService) DeleteView ¶
func (s *ProjectManagementService) DeleteView(ctx context.Context, in *pb.DeleteViewRequest) (*pb.DeleteViewResponse, error)
DeleteView delete a project's view
func (*ProjectManagementService) DeleteWorkshop ¶
func (s *ProjectManagementService) DeleteWorkshop(ctx context.Context, in *pb.DeleteWorkshopRequest) (*pb.DeleteWorkshopResponse, error)
DeleteWorkshop remove a workshop from project
func (*ProjectManagementService) GetDevices ¶
func (s *ProjectManagementService) GetDevices(ctx context.Context, in *pb.GetDevicesRequest) (*pb.GetDevicesResponse, error)
GetDevices return a project's all devices
func (*ProjectManagementService) GetProject ¶
func (s *ProjectManagementService) GetProject(ctx context.Context, in *pb.GetProjectRequest) (*pb.GetProjectResponse, error)
GetProject return specified project detail
func (*ProjectManagementService) GetProjects ¶
func (s *ProjectManagementService) GetProjects(ctx context.Context, in *pb.GetProjectsRequest) (*pb.GetProjectsResponse, error)
GetProjects return user's all projects
func (*ProjectManagementService) GetVariable ¶
func (s *ProjectManagementService) GetVariable(ctx context.Context, in *pb.GetVariableRequest) (*pb.GetVariableResponse, error)
GetVariable return a variable's detail information
func (*ProjectManagementService) GetVariables ¶
func (s *ProjectManagementService) GetVariables(ctx context.Context, in *pb.GetVariablesRequest) (*pb.GetVariablesResponse, error)
GetVariables return all variables in a view or project
func (*ProjectManagementService) GetView ¶
func (s *ProjectManagementService) GetView(ctx context.Context, in *pb.GetViewRequest) (*pb.GetViewResponse, error)
GetView return a view's detail informaiton
func (*ProjectManagementService) GetViews ¶
func (s *ProjectManagementService) GetViews(ctx context.Context, in *pb.GetViewsRequest) (*pb.GetViewsResponse, error)
GetViews return a project's all views
func (*ProjectManagementService) GetWorkshop ¶
func (s *ProjectManagementService) GetWorkshop(ctx context.Context, in *pb.GetWorkshopRequest) (*pb.GetWorkshopResponse, error)
GetWorkshop return specified workshop
func (*ProjectManagementService) GetWorkshops ¶
func (s *ProjectManagementService) GetWorkshops(ctx context.Context, in *pb.GetWorkshopsRequest) (*pb.GetWorkshopsResponse, error)
GetWorkshops return a project's all workshops
func (*ProjectManagementService) UpdateProject ¶
func (s *ProjectManagementService) UpdateProject(ctx context.Context, in *pb.UpdateProjectRequest) (*pb.UpdateProjectResponse, error)
UpdateProject update specified project
func (*ProjectManagementService) UpdateVariable ¶
func (s *ProjectManagementService) UpdateVariable(ctx context.Context, in *pb.UpdateVariableRequest) (*pb.UpdateVariableResponse, error)
UpdateVariable update a specified variable in view or project
func (*ProjectManagementService) UpdateView ¶
func (s *ProjectManagementService) UpdateView(ctx context.Context, in *pb.UpdateViewRequest) (*pb.UpdateViewResponse, error)
UpdateView update a specified view
func (*ProjectManagementService) UpdateWorkshop ¶
func (s *ProjectManagementService) UpdateWorkshop(ctx context.Context, in *pb.UpdateWorkshopRequest) (*pb.UpdateWorkshopResponse, error)
UpdateWorkshop update specified workshop
Directories ¶
Path | Synopsis |
---|---|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License.
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License. |
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License.
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License. |