Skip to content
Snippets Groups Projects
gosdnCLI.proto 1.31 KiB
Newer Older
  • Learn to ignore specific revisions
  • syntax = "proto3";
    
    option go_package = "gitlab.fbi.h-da.de/cocsn/gosdn";
    option java_multiple_files = true;
    option java_package = "de.h-da.fbi.gosdn.cliInterface";
    option java_outer_classname = "cliInterface";
    
    
    package cliInterface;
    
    // The greeting service definition.
    
      // Sends a greeting
      rpc SayHello (HelloRequest) returns (HelloReply) {}
    
      // Shutdown goSDN
      rpc Shutdown (ShutdownRequest) returns (ShutdownReply) {}
    
    
      // By now solely TAPI specific calls can be issued from the grpc-cli
      // TAPIGetEdge
      rpc TAPIGetEdge (TAPIRequest) returns (TAPIReply) {}
      //TAPIGetEdgeNode
      rpc TAPIGetEdgeNode (TAPIRequest) returns (TAPIReply) {}
      // TAPIGetLink
      rpc TAPIGetLink (TAPIRequest) returns (TAPIReply) {}
    
    }
    
    // The request message containing the user's name.
    message HelloRequest {
      string name = 1;
    }
    
    // The response message containing the greetings
    message HelloReply {
      string message = 1;
    
      string goSDNInfo = 2;
    
    
    // Request to shutdown goSDN
    message ShutdownRequest {
      string name = 1;
    }
    
    // The response message containing some shutdown notes of goSDN
    message ShutdownReply {
      string message = 1;
    }
    
    
    // Request with no meaning by now
    message TAPIRequest {
      string name = 1;
    }
    
    // The response message containing a string with no meaning by now
    message TAPIReply {
      string message = 1;
    }