123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- syntax = "proto3";
- import "gRPC_Model/general.proto";
- option go_package = "./gRPC_Model";
- message NetworkManagerDeviceStatus{
- string Device = 1;
- string Type = 2;
- string State = 3;
- string IP4Connectivity = 4;
- string IP6Connectivity = 5;
- string Connection = 6;
- string ConUUID = 7;
- }
- message NetworkManagerDeviceStatusList{
- repeated NetworkManagerDeviceStatus Value= 1;
- }
- message Ethernet{
- optional string MacAddress = 1;
- optional string Id = 2;
- string Ipv4Addresses = 3;
- optional string Ipv4Method = 4;
- repeated string DNS = 5;
- string Gateway = 6;
- }
- message Hotspot{
- string IfName = 1;
- string SSID = 2;
- string Password =3;
- }
- message DeviceInterfaceName{
- string Value = 1;
- }
- service NetworkManager{
- // 所有设备的状态信息
- rpc DeviceStatus(Empty)returns(NetworkManagerDeviceStatusList);
- // 以太网相关
- rpc EthernetSetStaticIP(Ethernet) returns (Empty);
- rpc EthernetInfo(DeviceInterfaceName) returns (Ethernet);
- // Wifi 相关
- rpc CreateHotspot(Hotspot)returns(Empty);
- rpc ChangeHotspot(Hotspot)returns(Empty);
- rpc OpenHotspot(Empty)returns(Empty);
- rpc HotspotInfo(Empty)returns(Hotspot);
- }
|