Skip to content
Snippets Groups Projects
gosdnCLI.proto 830 B
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.
    service Greeter {
      // Sends a greeting
      rpc SayHello (HelloRequest) returns (HelloReply) {}
    
      // Shutdown goSDN
      rpc Shutdown (ShutdownRequest) returns (ShutdownReply) {}
    
    }
    
    // The request message containing the user's name.
    message HelloRequest {
      string name = 1;
    }
    
    // The response message containing the greetings
    message HelloReply {
      string message = 1;
    }
    
    
    // Request to shutdown goSDN
    message ShutdownRequest {
      string name = 1;
    }
    
    // The response message containing some shutdown notes of goSDN
    message ShutdownReply {
      string message = 1;
    }