github.com/kchristidis/fabric@v1.0.4-0.20171028114726-837acd08cde1/protos/peer/admin.proto (about)

     1  /*
     2  Copyright IBM Corp. 2016 All Rights Reserved.
     3  
     4  Licensed under the Apache License, Version 2.0 (the "License");
     5  you may not use this file except in compliance with the License.
     6  You may obtain a copy of the License at
     7  
     8  		 http://www.apache.org/licenses/LICENSE-2.0
     9  
    10  Unless required by applicable law or agreed to in writing, software
    11  distributed under the License is distributed on an "AS IS" BASIS,
    12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  See the License for the specific language governing permissions and
    14  limitations under the License.
    15  */
    16  
    17  syntax = "proto3";
    18  
    19  option java_package = "org.hyperledger.fabric.protos.peer";
    20  option java_outer_classname = "AdminPackage";
    21  option go_package = "github.com/hyperledger/fabric/protos/peer";
    22  
    23  package protos;
    24  
    25  import "google/protobuf/empty.proto";
    26  
    27  // Interface exported by the server.
    28  service Admin {
    29      // Return the serve status.
    30      rpc GetStatus(google.protobuf.Empty) returns (ServerStatus) {}
    31      rpc StartServer(google.protobuf.Empty) returns (ServerStatus) {}
    32      rpc GetModuleLogLevel(LogLevelRequest) returns (LogLevelResponse) {}
    33      rpc SetModuleLogLevel(LogLevelRequest) returns (LogLevelResponse) {}
    34      rpc RevertLogLevels(google.protobuf.Empty) returns (google.protobuf.Empty) {}
    35  }
    36  
    37  message ServerStatus {
    38  
    39      enum StatusCode {
    40          UNDEFINED = 0;
    41          STARTED = 1;
    42          STOPPED = 2;
    43          PAUSED = 3;
    44          ERROR = 4;
    45          UNKNOWN = 5;
    46      }
    47  
    48      StatusCode status = 1;
    49  
    50  }
    51  message LogLevelRequest {
    52  	string log_module = 1;
    53  	string log_level = 2;
    54  }
    55  
    56  message LogLevelResponse {
    57  	string log_module = 1;
    58  	string log_level = 2;
    59  }