github.com/inklabsfoundation/inkchain@v0.17.1-0.20181025012015-c3cef8062f19/protos/peer/admin.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: peer/admin.proto 3 4 /* 5 Package peer is a generated protocol buffer package. 6 7 It is generated from these files: 8 peer/admin.proto 9 peer/chaincode.proto 10 peer/chaincode_event.proto 11 peer/chaincode_shim.proto 12 peer/configuration.proto 13 peer/events.proto 14 peer/peer.proto 15 peer/proposal.proto 16 peer/proposal_response.proto 17 peer/query.proto 18 peer/signed_cc_dep_spec.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 SenderSpec 29 SignContent 30 ChaincodeDeploymentSpec 31 ChaincodeInvocationSpec 32 ChaincodeEvent 33 ChaincodeMessage 34 PutStateInfo 35 GetStateByRange 36 GetQueryResult 37 GetHistoryForKey 38 QueryStateNext 39 QueryStateClose 40 QueryResultBytes 41 QueryResponse 42 Transfer 43 TransferInfo 44 IssueTokenInfo 45 Verify 46 AnchorPeers 47 AnchorPeer 48 ChaincodeReg 49 Interest 50 Register 51 Rejection 52 Unregister 53 SignedEvent 54 Event 55 PeerID 56 PeerEndpoint 57 SignedProposal 58 Proposal 59 ChaincodeHeaderExtension 60 ChaincodeProposalPayload 61 ChaincodeAction 62 ProposalResponse 63 Response 64 ProposalResponsePayload 65 Endorsement 66 ChaincodeQueryResponse 67 ChaincodeInfo 68 ChannelQueryResponse 69 ChannelInfo 70 SignedChaincodeDeploymentSpec 71 SignedTransaction 72 ProcessedTransaction 73 Transaction 74 TransactionAction 75 ChaincodeActionPayload 76 ChaincodeEndorsedAction 77 */ 78 package peer 79 80 import proto "github.com/golang/protobuf/proto" 81 import fmt "fmt" 82 import math "math" 83 import google_protobuf "github.com/golang/protobuf/ptypes/empty" 84 85 import ( 86 context "golang.org/x/net/context" 87 grpc "google.golang.org/grpc" 88 ) 89 90 // Reference imports to suppress errors if they are not otherwise used. 91 var _ = proto.Marshal 92 var _ = fmt.Errorf 93 var _ = math.Inf 94 95 // This is a compile-time assertion to ensure that this generated file 96 // is compatible with the proto package it is being compiled against. 97 // A compilation error at this line likely means your copy of the 98 // proto package needs to be updated. 99 const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package 100 101 type ServerStatus_StatusCode int32 102 103 const ( 104 ServerStatus_UNDEFINED ServerStatus_StatusCode = 0 105 ServerStatus_STARTED ServerStatus_StatusCode = 1 106 ServerStatus_STOPPED ServerStatus_StatusCode = 2 107 ServerStatus_PAUSED ServerStatus_StatusCode = 3 108 ServerStatus_ERROR ServerStatus_StatusCode = 4 109 ServerStatus_UNKNOWN ServerStatus_StatusCode = 5 110 ) 111 112 var ServerStatus_StatusCode_name = map[int32]string{ 113 0: "UNDEFINED", 114 1: "STARTED", 115 2: "STOPPED", 116 3: "PAUSED", 117 4: "ERROR", 118 5: "UNKNOWN", 119 } 120 var ServerStatus_StatusCode_value = map[string]int32{ 121 "UNDEFINED": 0, 122 "STARTED": 1, 123 "STOPPED": 2, 124 "PAUSED": 3, 125 "ERROR": 4, 126 "UNKNOWN": 5, 127 } 128 129 func (x ServerStatus_StatusCode) String() string { 130 return proto.EnumName(ServerStatus_StatusCode_name, int32(x)) 131 } 132 func (ServerStatus_StatusCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} } 133 134 type ServerStatus struct { 135 Status ServerStatus_StatusCode `protobuf:"varint,1,opt,name=status,enum=protos.ServerStatus_StatusCode" json:"status,omitempty"` 136 } 137 138 func (m *ServerStatus) Reset() { *m = ServerStatus{} } 139 func (m *ServerStatus) String() string { return proto.CompactTextString(m) } 140 func (*ServerStatus) ProtoMessage() {} 141 func (*ServerStatus) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } 142 143 func (m *ServerStatus) GetStatus() ServerStatus_StatusCode { 144 if m != nil { 145 return m.Status 146 } 147 return ServerStatus_UNDEFINED 148 } 149 150 type LogLevelRequest struct { 151 LogModule string `protobuf:"bytes,1,opt,name=log_module,json=logModule" json:"log_module,omitempty"` 152 LogLevel string `protobuf:"bytes,2,opt,name=log_level,json=logLevel" json:"log_level,omitempty"` 153 } 154 155 func (m *LogLevelRequest) Reset() { *m = LogLevelRequest{} } 156 func (m *LogLevelRequest) String() string { return proto.CompactTextString(m) } 157 func (*LogLevelRequest) ProtoMessage() {} 158 func (*LogLevelRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } 159 160 func (m *LogLevelRequest) GetLogModule() string { 161 if m != nil { 162 return m.LogModule 163 } 164 return "" 165 } 166 167 func (m *LogLevelRequest) GetLogLevel() string { 168 if m != nil { 169 return m.LogLevel 170 } 171 return "" 172 } 173 174 type LogLevelResponse struct { 175 LogModule string `protobuf:"bytes,1,opt,name=log_module,json=logModule" json:"log_module,omitempty"` 176 LogLevel string `protobuf:"bytes,2,opt,name=log_level,json=logLevel" json:"log_level,omitempty"` 177 } 178 179 func (m *LogLevelResponse) Reset() { *m = LogLevelResponse{} } 180 func (m *LogLevelResponse) String() string { return proto.CompactTextString(m) } 181 func (*LogLevelResponse) ProtoMessage() {} 182 func (*LogLevelResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } 183 184 func (m *LogLevelResponse) GetLogModule() string { 185 if m != nil { 186 return m.LogModule 187 } 188 return "" 189 } 190 191 func (m *LogLevelResponse) GetLogLevel() string { 192 if m != nil { 193 return m.LogLevel 194 } 195 return "" 196 } 197 198 func init() { 199 proto.RegisterType((*ServerStatus)(nil), "protos.ServerStatus") 200 proto.RegisterType((*LogLevelRequest)(nil), "protos.LogLevelRequest") 201 proto.RegisterType((*LogLevelResponse)(nil), "protos.LogLevelResponse") 202 proto.RegisterEnum("protos.ServerStatus_StatusCode", ServerStatus_StatusCode_name, ServerStatus_StatusCode_value) 203 } 204 205 // Reference imports to suppress errors if they are not otherwise used. 206 var _ context.Context 207 var _ grpc.ClientConn 208 209 // This is a compile-time assertion to ensure that this generated file 210 // is compatible with the grpc package it is being compiled against. 211 const _ = grpc.SupportPackageIsVersion4 212 213 // Client API for Admin service 214 215 type AdminClient interface { 216 // Return the serve status. 217 GetStatus(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (*ServerStatus, error) 218 StartServer(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (*ServerStatus, error) 219 GetModuleLogLevel(ctx context.Context, in *LogLevelRequest, opts ...grpc.CallOption) (*LogLevelResponse, error) 220 SetModuleLogLevel(ctx context.Context, in *LogLevelRequest, opts ...grpc.CallOption) (*LogLevelResponse, error) 221 RevertLogLevels(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (*google_protobuf.Empty, error) 222 } 223 224 type adminClient struct { 225 cc *grpc.ClientConn 226 } 227 228 func NewAdminClient(cc *grpc.ClientConn) AdminClient { 229 return &adminClient{cc} 230 } 231 232 func (c *adminClient) GetStatus(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (*ServerStatus, error) { 233 out := new(ServerStatus) 234 err := grpc.Invoke(ctx, "/protos.Admin/GetStatus", in, out, c.cc, opts...) 235 if err != nil { 236 return nil, err 237 } 238 return out, nil 239 } 240 241 func (c *adminClient) StartServer(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (*ServerStatus, error) { 242 out := new(ServerStatus) 243 err := grpc.Invoke(ctx, "/protos.Admin/StartServer", in, out, c.cc, opts...) 244 if err != nil { 245 return nil, err 246 } 247 return out, nil 248 } 249 250 func (c *adminClient) GetModuleLogLevel(ctx context.Context, in *LogLevelRequest, opts ...grpc.CallOption) (*LogLevelResponse, error) { 251 out := new(LogLevelResponse) 252 err := grpc.Invoke(ctx, "/protos.Admin/GetModuleLogLevel", in, out, c.cc, opts...) 253 if err != nil { 254 return nil, err 255 } 256 return out, nil 257 } 258 259 func (c *adminClient) SetModuleLogLevel(ctx context.Context, in *LogLevelRequest, opts ...grpc.CallOption) (*LogLevelResponse, error) { 260 out := new(LogLevelResponse) 261 err := grpc.Invoke(ctx, "/protos.Admin/SetModuleLogLevel", in, out, c.cc, opts...) 262 if err != nil { 263 return nil, err 264 } 265 return out, nil 266 } 267 268 func (c *adminClient) RevertLogLevels(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (*google_protobuf.Empty, error) { 269 out := new(google_protobuf.Empty) 270 err := grpc.Invoke(ctx, "/protos.Admin/RevertLogLevels", in, out, c.cc, opts...) 271 if err != nil { 272 return nil, err 273 } 274 return out, nil 275 } 276 277 // Server API for Admin service 278 279 type AdminServer interface { 280 // Return the serve status. 281 GetStatus(context.Context, *google_protobuf.Empty) (*ServerStatus, error) 282 StartServer(context.Context, *google_protobuf.Empty) (*ServerStatus, error) 283 GetModuleLogLevel(context.Context, *LogLevelRequest) (*LogLevelResponse, error) 284 SetModuleLogLevel(context.Context, *LogLevelRequest) (*LogLevelResponse, error) 285 RevertLogLevels(context.Context, *google_protobuf.Empty) (*google_protobuf.Empty, error) 286 } 287 288 func RegisterAdminServer(s *grpc.Server, srv AdminServer) { 289 s.RegisterService(&_Admin_serviceDesc, srv) 290 } 291 292 func _Admin_GetStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 293 in := new(google_protobuf.Empty) 294 if err := dec(in); err != nil { 295 return nil, err 296 } 297 if interceptor == nil { 298 return srv.(AdminServer).GetStatus(ctx, in) 299 } 300 info := &grpc.UnaryServerInfo{ 301 Server: srv, 302 FullMethod: "/protos.Admin/GetStatus", 303 } 304 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 305 return srv.(AdminServer).GetStatus(ctx, req.(*google_protobuf.Empty)) 306 } 307 return interceptor(ctx, in, info, handler) 308 } 309 310 func _Admin_StartServer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 311 in := new(google_protobuf.Empty) 312 if err := dec(in); err != nil { 313 return nil, err 314 } 315 if interceptor == nil { 316 return srv.(AdminServer).StartServer(ctx, in) 317 } 318 info := &grpc.UnaryServerInfo{ 319 Server: srv, 320 FullMethod: "/protos.Admin/StartServer", 321 } 322 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 323 return srv.(AdminServer).StartServer(ctx, req.(*google_protobuf.Empty)) 324 } 325 return interceptor(ctx, in, info, handler) 326 } 327 328 func _Admin_GetModuleLogLevel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 329 in := new(LogLevelRequest) 330 if err := dec(in); err != nil { 331 return nil, err 332 } 333 if interceptor == nil { 334 return srv.(AdminServer).GetModuleLogLevel(ctx, in) 335 } 336 info := &grpc.UnaryServerInfo{ 337 Server: srv, 338 FullMethod: "/protos.Admin/GetModuleLogLevel", 339 } 340 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 341 return srv.(AdminServer).GetModuleLogLevel(ctx, req.(*LogLevelRequest)) 342 } 343 return interceptor(ctx, in, info, handler) 344 } 345 346 func _Admin_SetModuleLogLevel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 347 in := new(LogLevelRequest) 348 if err := dec(in); err != nil { 349 return nil, err 350 } 351 if interceptor == nil { 352 return srv.(AdminServer).SetModuleLogLevel(ctx, in) 353 } 354 info := &grpc.UnaryServerInfo{ 355 Server: srv, 356 FullMethod: "/protos.Admin/SetModuleLogLevel", 357 } 358 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 359 return srv.(AdminServer).SetModuleLogLevel(ctx, req.(*LogLevelRequest)) 360 } 361 return interceptor(ctx, in, info, handler) 362 } 363 364 func _Admin_RevertLogLevels_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 365 in := new(google_protobuf.Empty) 366 if err := dec(in); err != nil { 367 return nil, err 368 } 369 if interceptor == nil { 370 return srv.(AdminServer).RevertLogLevels(ctx, in) 371 } 372 info := &grpc.UnaryServerInfo{ 373 Server: srv, 374 FullMethod: "/protos.Admin/RevertLogLevels", 375 } 376 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 377 return srv.(AdminServer).RevertLogLevels(ctx, req.(*google_protobuf.Empty)) 378 } 379 return interceptor(ctx, in, info, handler) 380 } 381 382 var _Admin_serviceDesc = grpc.ServiceDesc{ 383 ServiceName: "protos.Admin", 384 HandlerType: (*AdminServer)(nil), 385 Methods: []grpc.MethodDesc{ 386 { 387 MethodName: "GetStatus", 388 Handler: _Admin_GetStatus_Handler, 389 }, 390 { 391 MethodName: "StartServer", 392 Handler: _Admin_StartServer_Handler, 393 }, 394 { 395 MethodName: "GetModuleLogLevel", 396 Handler: _Admin_GetModuleLogLevel_Handler, 397 }, 398 { 399 MethodName: "SetModuleLogLevel", 400 Handler: _Admin_SetModuleLogLevel_Handler, 401 }, 402 { 403 MethodName: "RevertLogLevels", 404 Handler: _Admin_RevertLogLevels_Handler, 405 }, 406 }, 407 Streams: []grpc.StreamDesc{}, 408 Metadata: "peer/admin.proto", 409 } 410 411 func init() { proto.RegisterFile("peer/admin.proto", fileDescriptor0) } 412 413 var fileDescriptor0 = []byte{ 414 // 424 bytes of a gzipped FileDescriptorProto 415 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x93, 0x41, 0x6f, 0xd3, 0x30, 416 0x14, 0xc7, 0xdb, 0x42, 0x0b, 0x79, 0x1b, 0xcc, 0x58, 0x08, 0xaa, 0x4e, 0x08, 0x94, 0x13, 0xe2, 417 0xe0, 0x88, 0x71, 0xe0, 0x80, 0x38, 0x74, 0x4b, 0x18, 0x88, 0x2d, 0xad, 0x9c, 0x55, 0x08, 0x2e, 418 0x93, 0xdb, 0xbe, 0x79, 0xd5, 0x9c, 0x38, 0xc4, 0x4e, 0x25, 0xbe, 0x0e, 0x9f, 0x8b, 0x0f, 0x83, 419 0x1c, 0x37, 0x1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