github.com/adnan-c/fabric_e2e_couchdb@v0.6.1-preview.0.20170228180935-21ce6b23cf91/protos/peer/admin.pb.go (about) 1 // Code generated by protoc-gen-go. 2 // source: peer/admin.proto 3 // DO NOT EDIT! 4 5 /* 6 Package peer is a generated protocol buffer package. 7 8 It is generated from these files: 9 peer/admin.proto 10 peer/chaincode.proto 11 peer/chaincodeevent.proto 12 peer/chaincodeshim.proto 13 peer/configuration.proto 14 peer/events.proto 15 peer/peer.proto 16 peer/proposal.proto 17 peer/proposal_response.proto 18 peer/query.proto 19 peer/transaction.proto 20 21 It has these top-level messages: 22 ServerStatus 23 LogLevelRequest 24 LogLevelResponse 25 ChaincodeID 26 ChaincodeInput 27 ChaincodeSpec 28 ChaincodeDeploymentSpec 29 ChaincodeInvocationSpec 30 ChaincodeEvent 31 ChaincodeMessage 32 PutStateInfo 33 GetStateByRange 34 GetQueryResult 35 GetHistoryForKey 36 QueryStateNext 37 QueryStateClose 38 QueryStateKeyValue 39 QueryStateResponse 40 AnchorPeers 41 AnchorPeer 42 ChaincodeReg 43 Interest 44 Register 45 Rejection 46 Unregister 47 SignedEvent 48 Event 49 PeerID 50 PeerEndpoint 51 SignedProposal 52 Proposal 53 ChaincodeHeaderExtension 54 ChaincodeProposalPayload 55 ChaincodeAction 56 ProposalResponse 57 Response 58 ProposalResponsePayload 59 Endorsement 60 ChaincodeQueryResponse 61 ChaincodeInfo 62 ChannelQueryResponse 63 ChannelInfo 64 SignedTransaction 65 ProcessedTransaction 66 Transaction 67 TransactionAction 68 ChaincodeActionPayload 69 ChaincodeEndorsedAction 70 */ 71 package peer 72 73 import proto "github.com/golang/protobuf/proto" 74 import fmt "fmt" 75 import math "math" 76 import google_protobuf "github.com/golang/protobuf/ptypes/empty" 77 78 import ( 79 context "golang.org/x/net/context" 80 grpc "google.golang.org/grpc" 81 ) 82 83 // Reference imports to suppress errors if they are not otherwise used. 84 var _ = proto.Marshal 85 var _ = fmt.Errorf 86 var _ = math.Inf 87 88 // This is a compile-time assertion to ensure that this generated file 89 // is compatible with the proto package it is being compiled against. 90 // A compilation error at this line likely means your copy of the 91 // proto package needs to be updated. 92 const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package 93 94 type ServerStatus_StatusCode int32 95 96 const ( 97 ServerStatus_UNDEFINED ServerStatus_StatusCode = 0 98 ServerStatus_STARTED ServerStatus_StatusCode = 1 99 ServerStatus_STOPPED ServerStatus_StatusCode = 2 100 ServerStatus_PAUSED ServerStatus_StatusCode = 3 101 ServerStatus_ERROR ServerStatus_StatusCode = 4 102 ServerStatus_UNKNOWN ServerStatus_StatusCode = 5 103 ) 104 105 var ServerStatus_StatusCode_name = map[int32]string{ 106 0: "UNDEFINED", 107 1: "STARTED", 108 2: "STOPPED", 109 3: "PAUSED", 110 4: "ERROR", 111 5: "UNKNOWN", 112 } 113 var ServerStatus_StatusCode_value = map[string]int32{ 114 "UNDEFINED": 0, 115 "STARTED": 1, 116 "STOPPED": 2, 117 "PAUSED": 3, 118 "ERROR": 4, 119 "UNKNOWN": 5, 120 } 121 122 func (x ServerStatus_StatusCode) String() string { 123 return proto.EnumName(ServerStatus_StatusCode_name, int32(x)) 124 } 125 func (ServerStatus_StatusCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} } 126 127 type ServerStatus struct { 128 Status ServerStatus_StatusCode `protobuf:"varint,1,opt,name=status,enum=protos.ServerStatus_StatusCode" json:"status,omitempty"` 129 } 130 131 func (m *ServerStatus) Reset() { *m = ServerStatus{} } 132 func (m *ServerStatus) String() string { return proto.CompactTextString(m) } 133 func (*ServerStatus) ProtoMessage() {} 134 func (*ServerStatus) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } 135 136 type LogLevelRequest struct { 137 LogModule string `protobuf:"bytes,1,opt,name=log_module,json=logModule" json:"log_module,omitempty"` 138 LogLevel string `protobuf:"bytes,2,opt,name=log_level,json=logLevel" json:"log_level,omitempty"` 139 } 140 141 func (m *LogLevelRequest) Reset() { *m = LogLevelRequest{} } 142 func (m *LogLevelRequest) String() string { return proto.CompactTextString(m) } 143 func (*LogLevelRequest) ProtoMessage() {} 144 func (*LogLevelRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } 145 146 type LogLevelResponse struct { 147 LogModule string `protobuf:"bytes,1,opt,name=log_module,json=logModule" json:"log_module,omitempty"` 148 LogLevel string `protobuf:"bytes,2,opt,name=log_level,json=logLevel" json:"log_level,omitempty"` 149 } 150 151 func (m *LogLevelResponse) Reset() { *m = LogLevelResponse{} } 152 func (m *LogLevelResponse) String() string { return proto.CompactTextString(m) } 153 func (*LogLevelResponse) ProtoMessage() {} 154 func (*LogLevelResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } 155 156 func init() { 157 proto.RegisterType((*ServerStatus)(nil), "protos.ServerStatus") 158 proto.RegisterType((*LogLevelRequest)(nil), "protos.LogLevelRequest") 159 proto.RegisterType((*LogLevelResponse)(nil), "protos.LogLevelResponse") 160 proto.RegisterEnum("protos.ServerStatus_StatusCode", ServerStatus_StatusCode_name, ServerStatus_StatusCode_value) 161 } 162 163 // Reference imports to suppress errors if they are not otherwise used. 164 var _ context.Context 165 var _ grpc.ClientConn 166 167 // This is a compile-time assertion to ensure that this generated file 168 // is compatible with the grpc package it is being compiled against. 169 const _ = grpc.SupportPackageIsVersion3 170 171 // Client API for Admin service 172 173 type AdminClient interface { 174 // Return the serve status. 175 GetStatus(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (*ServerStatus, error) 176 StartServer(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (*ServerStatus, error) 177 StopServer(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (*ServerStatus, error) 178 GetModuleLogLevel(ctx context.Context, in *LogLevelRequest, opts ...grpc.CallOption) (*LogLevelResponse, error) 179 SetModuleLogLevel(ctx context.Context, in *LogLevelRequest, opts ...grpc.CallOption) (*LogLevelResponse, error) 180 } 181 182 type adminClient struct { 183 cc *grpc.ClientConn 184 } 185 186 func NewAdminClient(cc *grpc.ClientConn) AdminClient { 187 return &adminClient{cc} 188 } 189 190 func (c *adminClient) GetStatus(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (*ServerStatus, error) { 191 out := new(ServerStatus) 192 err := grpc.Invoke(ctx, "/protos.Admin/GetStatus", in, out, c.cc, opts...) 193 if err != nil { 194 return nil, err 195 } 196 return out, nil 197 } 198 199 func (c *adminClient) StartServer(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (*ServerStatus, error) { 200 out := new(ServerStatus) 201 err := grpc.Invoke(ctx, "/protos.Admin/StartServer", in, out, c.cc, opts...) 202 if err != nil { 203 return nil, err 204 } 205 return out, nil 206 } 207 208 func (c *adminClient) StopServer(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (*ServerStatus, error) { 209 out := new(ServerStatus) 210 err := grpc.Invoke(ctx, "/protos.Admin/StopServer", in, out, c.cc, opts...) 211 if err != nil { 212 return nil, err 213 } 214 return out, nil 215 } 216 217 func (c *adminClient) GetModuleLogLevel(ctx context.Context, in *LogLevelRequest, opts ...grpc.CallOption) (*LogLevelResponse, error) { 218 out := new(LogLevelResponse) 219 err := grpc.Invoke(ctx, "/protos.Admin/GetModuleLogLevel", in, out, c.cc, opts...) 220 if err != nil { 221 return nil, err 222 } 223 return out, nil 224 } 225 226 func (c *adminClient) SetModuleLogLevel(ctx context.Context, in *LogLevelRequest, opts ...grpc.CallOption) (*LogLevelResponse, error) { 227 out := new(LogLevelResponse) 228 err := grpc.Invoke(ctx, "/protos.Admin/SetModuleLogLevel", in, out, c.cc, opts...) 229 if err != nil { 230 return nil, err 231 } 232 return out, nil 233 } 234 235 // Server API for Admin service 236 237 type AdminServer interface { 238 // Return the serve status. 239 GetStatus(context.Context, *google_protobuf.Empty) (*ServerStatus, error) 240 StartServer(context.Context, *google_protobuf.Empty) (*ServerStatus, error) 241 StopServer(context.Context, *google_protobuf.Empty) (*ServerStatus, error) 242 GetModuleLogLevel(context.Context, *LogLevelRequest) (*LogLevelResponse, error) 243 SetModuleLogLevel(context.Context, *LogLevelRequest) (*LogLevelResponse, error) 244 } 245 246 func RegisterAdminServer(s *grpc.Server, srv AdminServer) { 247 s.RegisterService(&_Admin_serviceDesc, srv) 248 } 249 250 func _Admin_GetStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 251 in := new(google_protobuf.Empty) 252 if err := dec(in); err != nil { 253 return nil, err 254 } 255 if interceptor == nil { 256 return srv.(AdminServer).GetStatus(ctx, in) 257 } 258 info := &grpc.UnaryServerInfo{ 259 Server: srv, 260 FullMethod: "/protos.Admin/GetStatus", 261 } 262 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 263 return srv.(AdminServer).GetStatus(ctx, req.(*google_protobuf.Empty)) 264 } 265 return interceptor(ctx, in, info, handler) 266 } 267 268 func _Admin_StartServer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 269 in := new(google_protobuf.Empty) 270 if err := dec(in); err != nil { 271 return nil, err 272 } 273 if interceptor == nil { 274 return srv.(AdminServer).StartServer(ctx, in) 275 } 276 info := &grpc.UnaryServerInfo{ 277 Server: srv, 278 FullMethod: "/protos.Admin/StartServer", 279 } 280 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 281 return srv.(AdminServer).StartServer(ctx, req.(*google_protobuf.Empty)) 282 } 283 return interceptor(ctx, in, info, handler) 284 } 285 286 func _Admin_StopServer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 287 in := new(google_protobuf.Empty) 288 if err := dec(in); err != nil { 289 return nil, err 290 } 291 if interceptor == nil { 292 return srv.(AdminServer).StopServer(ctx, in) 293 } 294 info := &grpc.UnaryServerInfo{ 295 Server: srv, 296 FullMethod: "/protos.Admin/StopServer", 297 } 298 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 299 return srv.(AdminServer).StopServer(ctx, req.(*google_protobuf.Empty)) 300 } 301 return interceptor(ctx, in, info, handler) 302 } 303 304 func _Admin_GetModuleLogLevel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 305 in := new(LogLevelRequest) 306 if err := dec(in); err != nil { 307 return nil, err 308 } 309 if interceptor == nil { 310 return srv.(AdminServer).GetModuleLogLevel(ctx, in) 311 } 312 info := &grpc.UnaryServerInfo{ 313 Server: srv, 314 FullMethod: "/protos.Admin/GetModuleLogLevel", 315 } 316 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 317 return srv.(AdminServer).GetModuleLogLevel(ctx, req.(*LogLevelRequest)) 318 } 319 return interceptor(ctx, in, info, handler) 320 } 321 322 func _Admin_SetModuleLogLevel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 323 in := new(LogLevelRequest) 324 if err := dec(in); err != nil { 325 return nil, err 326 } 327 if interceptor == nil { 328 return srv.(AdminServer).SetModuleLogLevel(ctx, in) 329 } 330 info := &grpc.UnaryServerInfo{ 331 Server: srv, 332 FullMethod: "/protos.Admin/SetModuleLogLevel", 333 } 334 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 335 return srv.(AdminServer).SetModuleLogLevel(ctx, req.(*LogLevelRequest)) 336 } 337 return interceptor(ctx, in, info, handler) 338 } 339 340 var _Admin_serviceDesc = grpc.ServiceDesc{ 341 ServiceName: "protos.Admin", 342 HandlerType: (*AdminServer)(nil), 343 Methods: []grpc.MethodDesc{ 344 { 345 MethodName: "GetStatus", 346 Handler: _Admin_GetStatus_Handler, 347 }, 348 { 349 MethodName: "StartServer", 350 Handler: _Admin_StartServer_Handler, 351 }, 352 { 353 MethodName: "StopServer", 354 Handler: _Admin_StopServer_Handler, 355 }, 356 { 357 MethodName: "GetModuleLogLevel", 358 Handler: _Admin_GetModuleLogLevel_Handler, 359 }, 360 { 361 MethodName: "SetModuleLogLevel", 362 Handler: _Admin_SetModuleLogLevel_Handler, 363 }, 364 }, 365 Streams: []grpc.StreamDesc{}, 366 Metadata: fileDescriptor0, 367 } 368 369 func init() { proto.RegisterFile("peer/admin.proto", fileDescriptor0) } 370 371 var fileDescriptor0 = []byte{ 372 // 388 bytes of a gzipped FileDescriptorProto 373 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xac, 0x92, 0xdf, 0x8e, 0xd2, 0x40, 374 0x14, 0xc6, 0x29, 0x0a, 0xda, 0x83, 0x7f, 0xc6, 0x89, 0x51, 0x02, 0x31, 0x9a, 0x5e, 0x69, 0x4c, 375 0xda, 0x04, 0x2f, 0xbc, 0x50, 0x2f, 0xd0, 0x56, 0x34, 0x42, 0x21, 0x2d, 0xc4, 0xe8, 0x0d, 0x69, 376 0xe9, 0xa1, 0x90, 0x4c, 0x99, 0xee, 0xcc, 0x94, 0x84, 0xd7, 0xd9, 0x77, 0xda, 0xf7, 0xd9, 0xb4, 377 0x03, 0x61, 0xb3, 0xbb, 0x37, 0xfb, 0xe7, 0xea, 0xf4, 0x9c, 0xf3, 0x9d, 0x2f, 0x9d, 0x5f, 0x3e, 378 0x20, 0x39, 0xa2, 0x70, 0xa2, 0x24, 0x5b, 0x6f, 0xec, 0x5c, 0x70, 0xc5, 0x69, 0xb3, 0x2a, 0xb2, 379 0xd3, 0x4d, 0x39, 0x4f, 0x19, 0x3a, 0x55, 0x1b, 0x17, 0x4b, 0x07, 0xb3, 0x5c, 0xed, 0xb4, 0xc8, 380 0x3a, 0x35, 0xe0, 0x49, 0x88, 0x62, 0x8b, 0x22, 0x54, 0x91, 0x2a, 0x24, 0xfd, 0x0c, 0x4d, 0x59, 381 0x7d, 0xb5, 0x8d, 0x77, 0xc6, 0xfb, 0x67, 0xbd, 0xb7, 0x5a, 0x28, 0xed, 0x8b, 0x2a, 0x5b, 0x97, 382 0x1f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