github.com/binkynet/BinkyNet@v1.12.1-0.20240421190447-da4e34c20be0/apis/v1/localworker.proto (about) 1 // Copyright 2024 Ewout Prangsma 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 // 15 // Author Ewout Prangsma 16 // 17 18 syntax = "proto3"; 19 20 package binkynet.v1; 21 22 option go_package = "github.com/binkynet/BinkyNet/apis/v1"; 23 option csharp_namespace = "BinkyNet.Apis.V1"; 24 25 import "types.proto"; 26 27 // LocalWorkerService is served by individual local workers. 28 service LocalWorkerService { 29 // Reset the local worker 30 rpc Reset(Empty) returns (Empty); 31 32 // Set a requested loc state 33 rpc SetLocRequest(Loc) returns (Empty); 34 // Set the requested power state 35 rpc SetPowerRequest(PowerState) returns (Empty); 36 // Set a requested output state 37 rpc SetOutputRequest(Output) returns (Empty); 38 // Set a requested switch state 39 rpc SetSwitchRequest(Switch) returns (Empty); 40 // Set a requested device discovery state 41 rpc SetDeviceDiscoveryRequest(DeviceDiscovery) returns (Empty); 42 }