github.com/aergoio/aergo@v1.3.1/types/polarrpc.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: polarrpc.proto 3 4 package types 5 6 import proto "github.com/golang/protobuf/proto" 7 import fmt "fmt" 8 import math "math" 9 10 import ( 11 context "golang.org/x/net/context" 12 grpc "google.golang.org/grpc" 13 ) 14 15 // Reference imports to suppress errors if they are not otherwise used. 16 var _ = proto.Marshal 17 var _ = fmt.Errorf 18 var _ = math.Inf 19 20 // This is a compile-time assertion to ensure that this generated file 21 // is compatible with the proto package it is being compiled against. 22 // A compilation error at this line likely means your copy of the 23 // proto package needs to be updated. 24 const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package 25 26 type Paginations struct { 27 Ref []byte `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"` 28 Size uint32 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` 29 XXX_NoUnkeyedLiteral struct{} `json:"-"` 30 XXX_unrecognized []byte `json:"-"` 31 XXX_sizecache int32 `json:"-"` 32 } 33 34 func (m *Paginations) Reset() { *m = Paginations{} } 35 func (m *Paginations) String() string { return proto.CompactTextString(m) } 36 func (*Paginations) ProtoMessage() {} 37 func (*Paginations) Descriptor() ([]byte, []int) { 38 return fileDescriptor_polarrpc_1f6dae6536e3253f, []int{0} 39 } 40 func (m *Paginations) XXX_Unmarshal(b []byte) error { 41 return xxx_messageInfo_Paginations.Unmarshal(m, b) 42 } 43 func (m *Paginations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 44 return xxx_messageInfo_Paginations.Marshal(b, m, deterministic) 45 } 46 func (dst *Paginations) XXX_Merge(src proto.Message) { 47 xxx_messageInfo_Paginations.Merge(dst, src) 48 } 49 func (m *Paginations) XXX_Size() int { 50 return xxx_messageInfo_Paginations.Size(m) 51 } 52 func (m *Paginations) XXX_DiscardUnknown() { 53 xxx_messageInfo_Paginations.DiscardUnknown(m) 54 } 55 56 var xxx_messageInfo_Paginations proto.InternalMessageInfo 57 58 func (m *Paginations) GetRef() []byte { 59 if m != nil { 60 return m.Ref 61 } 62 return nil 63 } 64 65 func (m *Paginations) GetSize() uint32 { 66 if m != nil { 67 return m.Size 68 } 69 return 0 70 } 71 72 type PolarisPeerList struct { 73 Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` 74 HasNext bool `protobuf:"varint,2,opt,name=hasNext,proto3" json:"hasNext,omitempty"` 75 Peers []*PolarisPeer `protobuf:"bytes,3,rep,name=peers,proto3" json:"peers,omitempty"` 76 XXX_NoUnkeyedLiteral struct{} `json:"-"` 77 XXX_unrecognized []byte `json:"-"` 78 XXX_sizecache int32 `json:"-"` 79 } 80 81 func (m *PolarisPeerList) Reset() { *m = PolarisPeerList{} } 82 func (m *PolarisPeerList) String() string { return proto.CompactTextString(m) } 83 func (*PolarisPeerList) ProtoMessage() {} 84 func (*PolarisPeerList) Descriptor() ([]byte, []int) { 85 return fileDescriptor_polarrpc_1f6dae6536e3253f, []int{1} 86 } 87 func (m *PolarisPeerList) XXX_Unmarshal(b []byte) error { 88 return xxx_messageInfo_PolarisPeerList.Unmarshal(m, b) 89 } 90 func (m *PolarisPeerList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 91 return xxx_messageInfo_PolarisPeerList.Marshal(b, m, deterministic) 92 } 93 func (dst *PolarisPeerList) XXX_Merge(src proto.Message) { 94 xxx_messageInfo_PolarisPeerList.Merge(dst, src) 95 } 96 func (m *PolarisPeerList) XXX_Size() int { 97 return xxx_messageInfo_PolarisPeerList.Size(m) 98 } 99 func (m *PolarisPeerList) XXX_DiscardUnknown() { 100 xxx_messageInfo_PolarisPeerList.DiscardUnknown(m) 101 } 102 103 var xxx_messageInfo_PolarisPeerList proto.InternalMessageInfo 104 105 func (m *PolarisPeerList) GetTotal() uint32 { 106 if m != nil { 107 return m.Total 108 } 109 return 0 110 } 111 112 func (m *PolarisPeerList) GetHasNext() bool { 113 if m != nil { 114 return m.HasNext 115 } 116 return false 117 } 118 119 func (m *PolarisPeerList) GetPeers() []*PolarisPeer { 120 if m != nil { 121 return m.Peers 122 } 123 return nil 124 } 125 126 type PolarisPeer struct { 127 Address *PeerAddress `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 128 Connected int64 `protobuf:"varint,2,opt,name=connected,proto3" json:"connected,omitempty"` 129 // lastCheck contains unix timestamp with nanoseconds precision 130 LastCheck int64 `protobuf:"varint,3,opt,name=lastCheck,proto3" json:"lastCheck,omitempty"` 131 Verion string `protobuf:"bytes,4,opt,name=verion,proto3" json:"verion,omitempty"` 132 XXX_NoUnkeyedLiteral struct{} `json:"-"` 133 XXX_unrecognized []byte `json:"-"` 134 XXX_sizecache int32 `json:"-"` 135 } 136 137 func (m *PolarisPeer) Reset() { *m = PolarisPeer{} } 138 func (m *PolarisPeer) String() string { return proto.CompactTextString(m) } 139 func (*PolarisPeer) ProtoMessage() {} 140 func (*PolarisPeer) Descriptor() ([]byte, []int) { 141 return fileDescriptor_polarrpc_1f6dae6536e3253f, []int{2} 142 } 143 func (m *PolarisPeer) XXX_Unmarshal(b []byte) error { 144 return xxx_messageInfo_PolarisPeer.Unmarshal(m, b) 145 } 146 func (m *PolarisPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 147 return xxx_messageInfo_PolarisPeer.Marshal(b, m, deterministic) 148 } 149 func (dst *PolarisPeer) XXX_Merge(src proto.Message) { 150 xxx_messageInfo_PolarisPeer.Merge(dst, src) 151 } 152 func (m *PolarisPeer) XXX_Size() int { 153 return xxx_messageInfo_PolarisPeer.Size(m) 154 } 155 func (m *PolarisPeer) XXX_DiscardUnknown() { 156 xxx_messageInfo_PolarisPeer.DiscardUnknown(m) 157 } 158 159 var xxx_messageInfo_PolarisPeer proto.InternalMessageInfo 160 161 func (m *PolarisPeer) GetAddress() *PeerAddress { 162 if m != nil { 163 return m.Address 164 } 165 return nil 166 } 167 168 func (m *PolarisPeer) GetConnected() int64 { 169 if m != nil { 170 return m.Connected 171 } 172 return 0 173 } 174 175 func (m *PolarisPeer) GetLastCheck() int64 { 176 if m != nil { 177 return m.LastCheck 178 } 179 return 0 180 } 181 182 func (m *PolarisPeer) GetVerion() string { 183 if m != nil { 184 return m.Verion 185 } 186 return "" 187 } 188 189 type BLConfEntries struct { 190 Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` 191 Entries []string `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries,omitempty"` 192 XXX_NoUnkeyedLiteral struct{} `json:"-"` 193 XXX_unrecognized []byte `json:"-"` 194 XXX_sizecache int32 `json:"-"` 195 } 196 197 func (m *BLConfEntries) Reset() { *m = BLConfEntries{} } 198 func (m *BLConfEntries) String() string { return proto.CompactTextString(m) } 199 func (*BLConfEntries) ProtoMessage() {} 200 func (*BLConfEntries) Descriptor() ([]byte, []int) { 201 return fileDescriptor_polarrpc_1f6dae6536e3253f, []int{3} 202 } 203 func (m *BLConfEntries) XXX_Unmarshal(b []byte) error { 204 return xxx_messageInfo_BLConfEntries.Unmarshal(m, b) 205 } 206 func (m *BLConfEntries) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 207 return xxx_messageInfo_BLConfEntries.Marshal(b, m, deterministic) 208 } 209 func (dst *BLConfEntries) XXX_Merge(src proto.Message) { 210 xxx_messageInfo_BLConfEntries.Merge(dst, src) 211 } 212 func (m *BLConfEntries) XXX_Size() int { 213 return xxx_messageInfo_BLConfEntries.Size(m) 214 } 215 func (m *BLConfEntries) XXX_DiscardUnknown() { 216 xxx_messageInfo_BLConfEntries.DiscardUnknown(m) 217 } 218 219 var xxx_messageInfo_BLConfEntries proto.InternalMessageInfo 220 221 func (m *BLConfEntries) GetEnabled() bool { 222 if m != nil { 223 return m.Enabled 224 } 225 return false 226 } 227 228 func (m *BLConfEntries) GetEntries() []string { 229 if m != nil { 230 return m.Entries 231 } 232 return nil 233 } 234 235 type AddEntryParams struct { 236 PeerID string `protobuf:"bytes,1,opt,name=peerID,proto3" json:"peerID,omitempty"` 237 Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` 238 Cidr string `protobuf:"bytes,3,opt,name=cidr,proto3" json:"cidr,omitempty"` 239 XXX_NoUnkeyedLiteral struct{} `json:"-"` 240 XXX_unrecognized []byte `json:"-"` 241 XXX_sizecache int32 `json:"-"` 242 } 243 244 func (m *AddEntryParams) Reset() { *m = AddEntryParams{} } 245 func (m *AddEntryParams) String() string { return proto.CompactTextString(m) } 246 func (*AddEntryParams) ProtoMessage() {} 247 func (*AddEntryParams) Descriptor() ([]byte, []int) { 248 return fileDescriptor_polarrpc_1f6dae6536e3253f, []int{4} 249 } 250 func (m *AddEntryParams) XXX_Unmarshal(b []byte) error { 251 return xxx_messageInfo_AddEntryParams.Unmarshal(m, b) 252 } 253 func (m *AddEntryParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 254 return xxx_messageInfo_AddEntryParams.Marshal(b, m, deterministic) 255 } 256 func (dst *AddEntryParams) XXX_Merge(src proto.Message) { 257 xxx_messageInfo_AddEntryParams.Merge(dst, src) 258 } 259 func (m *AddEntryParams) XXX_Size() int { 260 return xxx_messageInfo_AddEntryParams.Size(m) 261 } 262 func (m *AddEntryParams) XXX_DiscardUnknown() { 263 xxx_messageInfo_AddEntryParams.DiscardUnknown(m) 264 } 265 266 var xxx_messageInfo_AddEntryParams proto.InternalMessageInfo 267 268 func (m *AddEntryParams) GetPeerID() string { 269 if m != nil { 270 return m.PeerID 271 } 272 return "" 273 } 274 275 func (m *AddEntryParams) GetAddress() string { 276 if m != nil { 277 return m.Address 278 } 279 return "" 280 } 281 282 func (m *AddEntryParams) GetCidr() string { 283 if m != nil { 284 return m.Cidr 285 } 286 return "" 287 } 288 289 type RmEntryParams struct { 290 Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` 291 XXX_NoUnkeyedLiteral struct{} `json:"-"` 292 XXX_unrecognized []byte `json:"-"` 293 XXX_sizecache int32 `json:"-"` 294 } 295 296 func (m *RmEntryParams) Reset() { *m = RmEntryParams{} } 297 func (m *RmEntryParams) String() string { return proto.CompactTextString(m) } 298 func (*RmEntryParams) ProtoMessage() {} 299 func (*RmEntryParams) Descriptor() ([]byte, []int) { 300 return fileDescriptor_polarrpc_1f6dae6536e3253f, []int{5} 301 } 302 func (m *RmEntryParams) XXX_Unmarshal(b []byte) error { 303 return xxx_messageInfo_RmEntryParams.Unmarshal(m, b) 304 } 305 func (m *RmEntryParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 306 return xxx_messageInfo_RmEntryParams.Marshal(b, m, deterministic) 307 } 308 func (dst *RmEntryParams) XXX_Merge(src proto.Message) { 309 xxx_messageInfo_RmEntryParams.Merge(dst, src) 310 } 311 func (m *RmEntryParams) XXX_Size() int { 312 return xxx_messageInfo_RmEntryParams.Size(m) 313 } 314 func (m *RmEntryParams) XXX_DiscardUnknown() { 315 xxx_messageInfo_RmEntryParams.DiscardUnknown(m) 316 } 317 318 var xxx_messageInfo_RmEntryParams proto.InternalMessageInfo 319 320 func (m *RmEntryParams) GetIndex() uint32 { 321 if m != nil { 322 return m.Index 323 } 324 return 0 325 } 326 327 func init() { 328 proto.RegisterType((*Paginations)(nil), "types.Paginations") 329 proto.RegisterType((*PolarisPeerList)(nil), "types.PolarisPeerList") 330 proto.RegisterType((*PolarisPeer)(nil), "types.PolarisPeer") 331 proto.RegisterType((*BLConfEntries)(nil), "types.BLConfEntries") 332 proto.RegisterType((*AddEntryParams)(nil), "types.AddEntryParams") 333 proto.RegisterType((*RmEntryParams)(nil), "types.RmEntryParams") 334 } 335 336 // Reference imports to suppress errors if they are not otherwise used. 337 var _ context.Context 338 var _ grpc.ClientConn 339 340 // This is a compile-time assertion to ensure that this generated file 341 // is compatible with the grpc package it is being compiled against. 342 const _ = grpc.SupportPackageIsVersion4 343 344 // PolarisRPCServiceClient is the client API for PolarisRPCService service. 345 // 346 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 347 type PolarisRPCServiceClient interface { 348 // Returns the current state of this node 349 NodeState(ctx context.Context, in *NodeReq, opts ...grpc.CallOption) (*SingleBytes, error) 350 // Returns node metrics according to request 351 Metric(ctx context.Context, in *MetricsRequest, opts ...grpc.CallOption) (*Metrics, error) 352 CurrentList(ctx context.Context, in *Paginations, opts ...grpc.CallOption) (*PolarisPeerList, error) 353 WhiteList(ctx context.Context, in *Paginations, opts ...grpc.CallOption) (*PolarisPeerList, error) 354 BlackList(ctx context.Context, in *Paginations, opts ...grpc.CallOption) (*PolarisPeerList, error) 355 ListBLEntries(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*BLConfEntries, error) 356 AddBLEntry(ctx context.Context, in *AddEntryParams, opts ...grpc.CallOption) (*SingleString, error) 357 RemoveBLEntry(ctx context.Context, in *RmEntryParams, opts ...grpc.CallOption) (*SingleString, error) 358 } 359 360 type polarisRPCServiceClient struct { 361 cc *grpc.ClientConn 362 } 363 364 func NewPolarisRPCServiceClient(cc *grpc.ClientConn) PolarisRPCServiceClient { 365 return &polarisRPCServiceClient{cc} 366 } 367 368 func (c *polarisRPCServiceClient) NodeState(ctx context.Context, in *NodeReq, opts ...grpc.CallOption) (*SingleBytes, error) { 369 out := new(SingleBytes) 370 err := c.cc.Invoke(ctx, "/types.PolarisRPCService/NodeState", in, out, opts...) 371 if err != nil { 372 return nil, err 373 } 374 return out, nil 375 } 376 377 func (c *polarisRPCServiceClient) Metric(ctx context.Context, in *MetricsRequest, opts ...grpc.CallOption) (*Metrics, error) { 378 out := new(Metrics) 379 err := c.cc.Invoke(ctx, "/types.PolarisRPCService/Metric", in, out, opts...) 380 if err != nil { 381 return nil, err 382 } 383 return out, nil 384 } 385 386 func (c *polarisRPCServiceClient) CurrentList(ctx context.Context, in *Paginations, opts ...grpc.CallOption) (*PolarisPeerList, error) { 387 out := new(PolarisPeerList) 388 err := c.cc.Invoke(ctx, "/types.PolarisRPCService/CurrentList", in, out, opts...) 389 if err != nil { 390 return nil, err 391 } 392 return out, nil 393 } 394 395 func (c *polarisRPCServiceClient) WhiteList(ctx context.Context, in *Paginations, opts ...grpc.CallOption) (*PolarisPeerList, error) { 396 out := new(PolarisPeerList) 397 err := c.cc.Invoke(ctx, "/types.PolarisRPCService/WhiteList", in, out, opts...) 398 if err != nil { 399 return nil, err 400 } 401 return out, nil 402 } 403 404 func (c *polarisRPCServiceClient) BlackList(ctx context.Context, in *Paginations, opts ...grpc.CallOption) (*PolarisPeerList, error) { 405 out := new(PolarisPeerList) 406 err := c.cc.Invoke(ctx, "/types.PolarisRPCService/BlackList", in, out, opts...) 407 if err != nil { 408 return nil, err 409 } 410 return out, nil 411 } 412 413 func (c *polarisRPCServiceClient) ListBLEntries(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*BLConfEntries, error) { 414 out := new(BLConfEntries) 415 err := c.cc.Invoke(ctx, "/types.PolarisRPCService/ListBLEntries", in, out, opts...) 416 if err != nil { 417 return nil, err 418 } 419 return out, nil 420 } 421 422 func (c *polarisRPCServiceClient) AddBLEntry(ctx context.Context, in *AddEntryParams, opts ...grpc.CallOption) (*SingleString, error) { 423 out := new(SingleString) 424 err := c.cc.Invoke(ctx, "/types.PolarisRPCService/AddBLEntry", in, out, opts...) 425 if err != nil { 426 return nil, err 427 } 428 return out, nil 429 } 430 431 func (c *polarisRPCServiceClient) RemoveBLEntry(ctx context.Context, in *RmEntryParams, opts ...grpc.CallOption) (*SingleString, error) { 432 out := new(SingleString) 433 err := c.cc.Invoke(ctx, "/types.PolarisRPCService/RemoveBLEntry", in, out, opts...) 434 if err != nil { 435 return nil, err 436 } 437 return out, nil 438 } 439 440 // PolarisRPCServiceServer is the server API for PolarisRPCService service. 441 type PolarisRPCServiceServer interface { 442 // Returns the current state of this node 443 NodeState(context.Context, *NodeReq) (*SingleBytes, error) 444 // Returns node metrics according to request 445 Metric(context.Context, *MetricsRequest) (*Metrics, error) 446 CurrentList(context.Context, *Paginations) (*PolarisPeerList, error) 447 WhiteList(context.Context, *Paginations) (*PolarisPeerList, error) 448 BlackList(context.Context, *Paginations) (*PolarisPeerList, error) 449 ListBLEntries(context.Context, *Empty) (*BLConfEntries, error) 450 AddBLEntry(context.Context, *AddEntryParams) (*SingleString, error) 451 RemoveBLEntry(context.Context, *RmEntryParams) (*SingleString, error) 452 } 453 454 func RegisterPolarisRPCServiceServer(s *grpc.Server, srv PolarisRPCServiceServer) { 455 s.RegisterService(&_PolarisRPCService_serviceDesc, srv) 456 } 457 458 func _PolarisRPCService_NodeState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 459 in := new(NodeReq) 460 if err := dec(in); err != nil { 461 return nil, err 462 } 463 if interceptor == nil { 464 return srv.(PolarisRPCServiceServer).NodeState(ctx, in) 465 } 466 info := &grpc.UnaryServerInfo{ 467 Server: srv, 468 FullMethod: "/types.PolarisRPCService/NodeState", 469 } 470 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 471 return srv.(PolarisRPCServiceServer).NodeState(ctx, req.(*NodeReq)) 472 } 473 return interceptor(ctx, in, info, handler) 474 } 475 476 func _PolarisRPCService_Metric_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 477 in := new(MetricsRequest) 478 if err := dec(in); err != nil { 479 return nil, err 480 } 481 if interceptor == nil { 482 return srv.(PolarisRPCServiceServer).Metric(ctx, in) 483 } 484 info := &grpc.UnaryServerInfo{ 485 Server: srv, 486 FullMethod: "/types.PolarisRPCService/Metric", 487 } 488 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 489 return srv.(PolarisRPCServiceServer).Metric(ctx, req.(*MetricsRequest)) 490 } 491 return interceptor(ctx, in, info, handler) 492 } 493 494 func _PolarisRPCService_CurrentList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 495 in := new(Paginations) 496 if err := dec(in); err != nil { 497 return nil, err 498 } 499 if interceptor == nil { 500 return srv.(PolarisRPCServiceServer).CurrentList(ctx, in) 501 } 502 info := &grpc.UnaryServerInfo{ 503 Server: srv, 504 FullMethod: "/types.PolarisRPCService/CurrentList", 505 } 506 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 507 return srv.(PolarisRPCServiceServer).CurrentList(ctx, req.(*Paginations)) 508 } 509 return interceptor(ctx, in, info, handler) 510 } 511 512 func _PolarisRPCService_WhiteList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 513 in := new(Paginations) 514 if err := dec(in); err != nil { 515 return nil, err 516 } 517 if interceptor == nil { 518 return srv.(PolarisRPCServiceServer).WhiteList(ctx, in) 519 } 520 info := &grpc.UnaryServerInfo{ 521 Server: srv, 522 FullMethod: "/types.PolarisRPCService/WhiteList", 523 } 524 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 525 return srv.(PolarisRPCServiceServer).WhiteList(ctx, req.(*Paginations)) 526 } 527 return interceptor(ctx, in, info, handler) 528 } 529 530 func _PolarisRPCService_BlackList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 531 in := new(Paginations) 532 if err := dec(in); err != nil { 533 return nil, err 534 } 535 if interceptor == nil { 536 return srv.(PolarisRPCServiceServer).BlackList(ctx, in) 537 } 538 info := &grpc.UnaryServerInfo{ 539 Server: srv, 540 FullMethod: "/types.PolarisRPCService/BlackList", 541 } 542 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 543 return srv.(PolarisRPCServiceServer).BlackList(ctx, req.(*Paginations)) 544 } 545 return interceptor(ctx, in, info, handler) 546 } 547 548 func _PolarisRPCService_ListBLEntries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 549 in := new(Empty) 550 if err := dec(in); err != nil { 551 return nil, err 552 } 553 if interceptor == nil { 554 return srv.(PolarisRPCServiceServer).ListBLEntries(ctx, in) 555 } 556 info := &grpc.UnaryServerInfo{ 557 Server: srv, 558 FullMethod: "/types.PolarisRPCService/ListBLEntries", 559 } 560 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 561 return srv.(PolarisRPCServiceServer).ListBLEntries(ctx, req.(*Empty)) 562 } 563 return interceptor(ctx, in, info, handler) 564 } 565 566 func _PolarisRPCService_AddBLEntry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 567 in := new(AddEntryParams) 568 if err := dec(in); err != nil { 569 return nil, err 570 } 571 if interceptor == nil { 572 return srv.(PolarisRPCServiceServer).AddBLEntry(ctx, in) 573 } 574 info := &grpc.UnaryServerInfo{ 575 Server: srv, 576 FullMethod: "/types.PolarisRPCService/AddBLEntry", 577 } 578 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 579 return srv.(PolarisRPCServiceServer).AddBLEntry(ctx, req.(*AddEntryParams)) 580 } 581 return interceptor(ctx, in, info, handler) 582 } 583 584 func _PolarisRPCService_RemoveBLEntry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 585 in := new(RmEntryParams) 586 if err := dec(in); err != nil { 587 return nil, err 588 } 589 if interceptor == nil { 590 return srv.(PolarisRPCServiceServer).RemoveBLEntry(ctx, in) 591 } 592 info := &grpc.UnaryServerInfo{ 593 Server: srv, 594 FullMethod: "/types.PolarisRPCService/RemoveBLEntry", 595 } 596 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 597 return srv.(PolarisRPCServiceServer).RemoveBLEntry(ctx, req.(*RmEntryParams)) 598 } 599 return interceptor(ctx, in, info, handler) 600 } 601 602 var _PolarisRPCService_serviceDesc = grpc.ServiceDesc{ 603 ServiceName: "types.PolarisRPCService", 604 HandlerType: (*PolarisRPCServiceServer)(nil), 605 Methods: []grpc.MethodDesc{ 606 { 607 MethodName: "NodeState", 608 Handler: _PolarisRPCService_NodeState_Handler, 609 }, 610 { 611 MethodName: "Metric", 612 Handler: _PolarisRPCService_Metric_Handler, 613 }, 614 { 615 MethodName: "CurrentList", 616 Handler: _PolarisRPCService_CurrentList_Handler, 617 }, 618 { 619 MethodName: "WhiteList", 620 Handler: _PolarisRPCService_WhiteList_Handler, 621 }, 622 { 623 MethodName: "BlackList", 624 Handler: _PolarisRPCService_BlackList_Handler, 625 }, 626 { 627 MethodName: "ListBLEntries", 628 Handler: _PolarisRPCService_ListBLEntries_Handler, 629 }, 630 { 631 MethodName: "AddBLEntry", 632 Handler: _PolarisRPCService_AddBLEntry_Handler, 633 }, 634 { 635 MethodName: "RemoveBLEntry", 636 Handler: _PolarisRPCService_RemoveBLEntry_Handler, 637 }, 638 }, 639 Streams: []grpc.StreamDesc{}, 640 Metadata: "polarrpc.proto", 641 } 642 643 func init() { proto.RegisterFile("polarrpc.proto", fileDescriptor_polarrpc_1f6dae6536e3253f) } 644 645 var fileDescriptor_polarrpc_1f6dae6536e3253f = []byte{ 646 // 535 bytes of a gzipped FileDescriptorProto 647 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x53, 0xcb, 0x6a, 0xdb, 0x40, 648 0x14, 0xb5, 0xa2, 0xd8, 0x89, 0xae, 0x2d, 0xb7, 0x9d, 0xba, 0x41, 0x88, 0x2e, 0x84, 0xa0, 0xa0, 649 0x45, 0x31, 0x24, 0xa1, 0x8b, 0x3e, 0x36, 0xb6, 0x9b, 0x45, 0xc1, 0x0d, 0x66, 0x0c, 0xed, 0x7a, 650 0xa2, 0xb9, 0xb1, 0x07, 0xcb, 0x23, 0x65, 0x66, 0x62, 0xe2, 0xfe, 0x44, 0xbf, 0xb0, 0xff, 0x52, 651 0x34, 0x92, 0xfc, 0xa0, 0x74, 0x93, 0xdd, 0x9c, 0x7b, 0xee, 0xb9, 0xef, 0x81, 0x7e, 0x91, 0x67, 652 0x4c, 0xa9, 0x22, 0x1d, 0x16, 0x2a, 0x37, 0x39, 0x69, 0x9b, 0x6d, 0x81, 0x3a, 0x04, 0x99, 0x73, 653 0xac, 0x4c, 0xa1, 0xb7, 0x63, 0xc3, 0xde, 0x1a, 0x8d, 0x12, 0x35, 0x8a, 0xaf, 0xa1, 0x3b, 0x63, 654 0x0b, 0x21, 0x99, 0x11, 0xb9, 0xd4, 0xe4, 0x25, 0xb8, 0x0a, 0xef, 0x03, 0x27, 0x72, 0x92, 0x1e, 655 0x2d, 0x9f, 0x84, 0xc0, 0xa9, 0x16, 0xbf, 0x30, 0x70, 0x23, 0x27, 0xf1, 0xa9, 0x7d, 0xc7, 0x2b, 656 0x78, 0x31, 0x2b, 0x53, 0x0a, 0x3d, 0x43, 0x54, 0x53, 0xa1, 0x0d, 0x19, 0x40, 0xdb, 0xe4, 0x86, 657 0x65, 0x56, 0xea, 0xd3, 0x0a, 0x90, 0x00, 0xce, 0x96, 0x4c, 0xdf, 0xe2, 0x93, 0x09, 0x4e, 0x22, 658 0x27, 0x39, 0xa7, 0x0d, 0x24, 0x09, 0xb4, 0x0b, 0x44, 0xa5, 0x03, 0x37, 0x72, 0x93, 0xee, 0x15, 659 0x19, 0xda, 0x9a, 0x87, 0x07, 0x61, 0x69, 0xe5, 0x10, 0xff, 0x76, 0xa0, 0x7b, 0x60, 0x26, 0xef, 660 0xe1, 0x8c, 0x71, 0xae, 0x50, 0x6b, 0x9b, 0xeb, 0x40, 0x8b, 0xa8, 0x46, 0x15, 0x43, 0x1b, 0x17, 661 0xf2, 0x16, 0xbc, 0x34, 0x97, 0x12, 0x53, 0x83, 0xdc, 0xd6, 0xe0, 0xd2, 0xbd, 0xa1, 0x64, 0x33, 662 0xa6, 0xcd, 0x64, 0x89, 0xe9, 0xca, 0x76, 0xe8, 0xd2, 0xbd, 0x81, 0x5c, 0x40, 0x67, 0x83, 0x4a, 663 0xe4, 0x32, 0x38, 0x8d, 0x9c, 0xc4, 0xa3, 0x35, 0x8a, 0x27, 0xe0, 0x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