2020-11-04 15:51:38 +08:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
|
// versions:
|
|
|
|
|
// protoc-gen-go v1.25.0
|
2022-03-04 15:44:39 +08:00
|
|
|
// protoc v3.19.4
|
2020-11-04 15:51:38 +08:00
|
|
|
// source: service_ip_library.proto
|
|
|
|
|
|
|
|
|
|
package pb
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
context "context"
|
|
|
|
|
proto "github.com/golang/protobuf/proto"
|
|
|
|
|
grpc "google.golang.org/grpc"
|
|
|
|
|
codes "google.golang.org/grpc/codes"
|
|
|
|
|
status "google.golang.org/grpc/status"
|
|
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
|
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
|
|
|
reflect "reflect"
|
|
|
|
|
sync "sync"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
|
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
|
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
|
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// This is a compile-time assertion that a sufficiently up-to-date version
|
|
|
|
|
// of the legacy proto package is being used.
|
|
|
|
|
const _ = proto.ProtoPackageIsVersion4
|
|
|
|
|
|
|
|
|
|
// 创建IP库
|
|
|
|
|
type CreateIPLibraryRequest struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
|
|
|
|
|
FileId int64 `protobuf:"varint,3,opt,name=fileId,proto3" json:"fileId,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CreateIPLibraryRequest) Reset() {
|
|
|
|
|
*x = CreateIPLibraryRequest{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_service_ip_library_proto_msgTypes[0]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CreateIPLibraryRequest) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*CreateIPLibraryRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *CreateIPLibraryRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_service_ip_library_proto_msgTypes[0]
|
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
return ms
|
|
|
|
|
}
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use CreateIPLibraryRequest.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*CreateIPLibraryRequest) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_service_ip_library_proto_rawDescGZIP(), []int{0}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CreateIPLibraryRequest) GetType() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Type
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CreateIPLibraryRequest) GetFileId() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.FileId
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type CreateIPLibraryResponse struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
IpLibraryId int64 `protobuf:"varint,1,opt,name=ipLibraryId,proto3" json:"ipLibraryId,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CreateIPLibraryResponse) Reset() {
|
|
|
|
|
*x = CreateIPLibraryResponse{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_service_ip_library_proto_msgTypes[1]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CreateIPLibraryResponse) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*CreateIPLibraryResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *CreateIPLibraryResponse) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_service_ip_library_proto_msgTypes[1]
|
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
return ms
|
|
|
|
|
}
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use CreateIPLibraryResponse.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*CreateIPLibraryResponse) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_service_ip_library_proto_rawDescGZIP(), []int{1}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CreateIPLibraryResponse) GetIpLibraryId() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.IpLibraryId
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 查找单个IP库
|
|
|
|
|
type FindEnabledIPLibraryRequest struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
IpLibraryId int64 `protobuf:"varint,1,opt,name=ipLibraryId,proto3" json:"ipLibraryId,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *FindEnabledIPLibraryRequest) Reset() {
|
|
|
|
|
*x = FindEnabledIPLibraryRequest{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_service_ip_library_proto_msgTypes[2]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *FindEnabledIPLibraryRequest) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*FindEnabledIPLibraryRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *FindEnabledIPLibraryRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_service_ip_library_proto_msgTypes[2]
|
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
return ms
|
|
|
|
|
}
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use FindEnabledIPLibraryRequest.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*FindEnabledIPLibraryRequest) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_service_ip_library_proto_rawDescGZIP(), []int{2}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *FindEnabledIPLibraryRequest) GetIpLibraryId() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.IpLibraryId
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type FindEnabledIPLibraryResponse struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
IpLibrary *IPLibrary `protobuf:"bytes,1,opt,name=ipLibrary,proto3" json:"ipLibrary,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *FindEnabledIPLibraryResponse) Reset() {
|
|
|
|
|
*x = FindEnabledIPLibraryResponse{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_service_ip_library_proto_msgTypes[3]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *FindEnabledIPLibraryResponse) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*FindEnabledIPLibraryResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *FindEnabledIPLibraryResponse) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_service_ip_library_proto_msgTypes[3]
|
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
return ms
|
|
|
|
|
}
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use FindEnabledIPLibraryResponse.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*FindEnabledIPLibraryResponse) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_service_ip_library_proto_rawDescGZIP(), []int{3}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *FindEnabledIPLibraryResponse) GetIpLibrary() *IPLibrary {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.IpLibrary
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 查找最新的IP库
|
|
|
|
|
type FindLatestIPLibraryWithTypeRequest struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *FindLatestIPLibraryWithTypeRequest) Reset() {
|
|
|
|
|
*x = FindLatestIPLibraryWithTypeRequest{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_service_ip_library_proto_msgTypes[4]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *FindLatestIPLibraryWithTypeRequest) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*FindLatestIPLibraryWithTypeRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *FindLatestIPLibraryWithTypeRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_service_ip_library_proto_msgTypes[4]
|
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
return ms
|
|
|
|
|
}
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use FindLatestIPLibraryWithTypeRequest.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*FindLatestIPLibraryWithTypeRequest) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_service_ip_library_proto_rawDescGZIP(), []int{4}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *FindLatestIPLibraryWithTypeRequest) GetType() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Type
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type FindLatestIPLibraryWithTypeResponse struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
IpLibrary *IPLibrary `protobuf:"bytes,1,opt,name=ipLibrary,proto3" json:"ipLibrary,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *FindLatestIPLibraryWithTypeResponse) Reset() {
|
|
|
|
|
*x = FindLatestIPLibraryWithTypeResponse{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_service_ip_library_proto_msgTypes[5]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *FindLatestIPLibraryWithTypeResponse) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*FindLatestIPLibraryWithTypeResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *FindLatestIPLibraryWithTypeResponse) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_service_ip_library_proto_msgTypes[5]
|
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
return ms
|
|
|
|
|
}
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use FindLatestIPLibraryWithTypeResponse.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*FindLatestIPLibraryWithTypeResponse) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_service_ip_library_proto_rawDescGZIP(), []int{5}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *FindLatestIPLibraryWithTypeResponse) GetIpLibrary() *IPLibrary {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.IpLibrary
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 列出某个类型的所有IP库
|
|
|
|
|
type FindAllEnabledIPLibrariesWithTypeRequest struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *FindAllEnabledIPLibrariesWithTypeRequest) Reset() {
|
|
|
|
|
*x = FindAllEnabledIPLibrariesWithTypeRequest{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_service_ip_library_proto_msgTypes[6]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *FindAllEnabledIPLibrariesWithTypeRequest) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*FindAllEnabledIPLibrariesWithTypeRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *FindAllEnabledIPLibrariesWithTypeRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_service_ip_library_proto_msgTypes[6]
|
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
return ms
|
|
|
|
|
}
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use FindAllEnabledIPLibrariesWithTypeRequest.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*FindAllEnabledIPLibrariesWithTypeRequest) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_service_ip_library_proto_rawDescGZIP(), []int{6}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *FindAllEnabledIPLibrariesWithTypeRequest) GetType() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Type
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type FindAllEnabledIPLibrariesWithTypeResponse struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
IpLibraries []*IPLibrary `protobuf:"bytes,1,rep,name=ipLibraries,proto3" json:"ipLibraries,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *FindAllEnabledIPLibrariesWithTypeResponse) Reset() {
|
|
|
|
|
*x = FindAllEnabledIPLibrariesWithTypeResponse{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_service_ip_library_proto_msgTypes[7]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *FindAllEnabledIPLibrariesWithTypeResponse) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*FindAllEnabledIPLibrariesWithTypeResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *FindAllEnabledIPLibrariesWithTypeResponse) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_service_ip_library_proto_msgTypes[7]
|
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
return ms
|
|
|
|
|
}
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use FindAllEnabledIPLibrariesWithTypeResponse.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*FindAllEnabledIPLibrariesWithTypeResponse) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_service_ip_library_proto_rawDescGZIP(), []int{7}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *FindAllEnabledIPLibrariesWithTypeResponse) GetIpLibraries() []*IPLibrary {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.IpLibraries
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 删除IP库
|
|
|
|
|
type DeleteIPLibraryRequest struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
IpLibraryId int64 `protobuf:"varint,1,opt,name=ipLibraryId,proto3" json:"ipLibraryId,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *DeleteIPLibraryRequest) Reset() {
|
|
|
|
|
*x = DeleteIPLibraryRequest{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_service_ip_library_proto_msgTypes[8]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *DeleteIPLibraryRequest) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*DeleteIPLibraryRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *DeleteIPLibraryRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_service_ip_library_proto_msgTypes[8]
|
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
return ms
|
|
|
|
|
}
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use DeleteIPLibraryRequest.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*DeleteIPLibraryRequest) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_service_ip_library_proto_rawDescGZIP(), []int{8}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *DeleteIPLibraryRequest) GetIpLibraryId() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.IpLibraryId
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
2020-11-05 11:51:48 +08:00
|
|
|
// 查询某个IP信息
|
|
|
|
|
type LookupIPRegionRequest struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *LookupIPRegionRequest) Reset() {
|
|
|
|
|
*x = LookupIPRegionRequest{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_service_ip_library_proto_msgTypes[9]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *LookupIPRegionRequest) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*LookupIPRegionRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *LookupIPRegionRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_service_ip_library_proto_msgTypes[9]
|
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
return ms
|
|
|
|
|
}
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use LookupIPRegionRequest.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*LookupIPRegionRequest) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_service_ip_library_proto_rawDescGZIP(), []int{9}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *LookupIPRegionRequest) GetIp() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Ip
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type LookupIPRegionResponse struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
2021-01-13 17:00:24 +08:00
|
|
|
IpRegion *IPRegion `protobuf:"bytes,1,opt,name=ipRegion,proto3" json:"ipRegion,omitempty"`
|
2020-11-05 11:51:48 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *LookupIPRegionResponse) Reset() {
|
|
|
|
|
*x = LookupIPRegionResponse{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_service_ip_library_proto_msgTypes[10]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *LookupIPRegionResponse) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*LookupIPRegionResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *LookupIPRegionResponse) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_service_ip_library_proto_msgTypes[10]
|
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
return ms
|
|
|
|
|
}
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use LookupIPRegionResponse.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*LookupIPRegionResponse) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_service_ip_library_proto_rawDescGZIP(), []int{10}
|
|
|
|
|
}
|
|
|
|
|
|
2021-01-13 17:00:24 +08:00
|
|
|
func (x *LookupIPRegionResponse) GetIpRegion() *IPRegion {
|
2020-11-05 11:51:48 +08:00
|
|
|
if x != nil {
|
2021-01-13 17:00:24 +08:00
|
|
|
return x.IpRegion
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 查询一组IP信息
|
|
|
|
|
type LookupIPRegionsRequest struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
IpList []string `protobuf:"bytes,1,rep,name=ipList,proto3" json:"ipList,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *LookupIPRegionsRequest) Reset() {
|
|
|
|
|
*x = LookupIPRegionsRequest{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_service_ip_library_proto_msgTypes[11]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *LookupIPRegionsRequest) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*LookupIPRegionsRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *LookupIPRegionsRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_service_ip_library_proto_msgTypes[11]
|
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
return ms
|
|
|
|
|
}
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use LookupIPRegionsRequest.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*LookupIPRegionsRequest) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_service_ip_library_proto_rawDescGZIP(), []int{11}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *LookupIPRegionsRequest) GetIpList() []string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.IpList
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type LookupIPRegionsResponse struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
IpRegionMap map[string]*IPRegion `protobuf:"bytes,1,rep,name=ipRegionMap,proto3" json:"ipRegionMap,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *LookupIPRegionsResponse) Reset() {
|
|
|
|
|
*x = LookupIPRegionsResponse{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_service_ip_library_proto_msgTypes[12]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *LookupIPRegionsResponse) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*LookupIPRegionsResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *LookupIPRegionsResponse) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_service_ip_library_proto_msgTypes[12]
|
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
return ms
|
|
|
|
|
}
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use LookupIPRegionsResponse.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*LookupIPRegionsResponse) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_service_ip_library_proto_rawDescGZIP(), []int{12}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *LookupIPRegionsResponse) GetIpRegionMap() map[string]*IPRegion {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.IpRegionMap
|
2020-11-05 11:51:48 +08:00
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IP信息
|
|
|
|
|
type IPRegion struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
2020-11-20 21:59:21 +08:00
|
|
|
Country string `protobuf:"bytes,1,opt,name=country,proto3" json:"country,omitempty"`
|
|
|
|
|
Region string `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"`
|
|
|
|
|
Province string `protobuf:"bytes,3,opt,name=province,proto3" json:"province,omitempty"`
|
|
|
|
|
City string `protobuf:"bytes,4,opt,name=city,proto3" json:"city,omitempty"`
|
|
|
|
|
Isp string `protobuf:"bytes,5,opt,name=isp,proto3" json:"isp,omitempty"`
|
|
|
|
|
CountryId int64 `protobuf:"varint,6,opt,name=countryId,proto3" json:"countryId,omitempty"`
|
|
|
|
|
ProvinceId int64 `protobuf:"varint,7,opt,name=provinceId,proto3" json:"provinceId,omitempty"`
|
2021-01-13 17:00:24 +08:00
|
|
|
Summary string `protobuf:"bytes,8,opt,name=summary,proto3" json:"summary,omitempty"` // 完整的地区组合
|
2020-11-05 11:51:48 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *IPRegion) Reset() {
|
|
|
|
|
*x = IPRegion{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2021-01-13 17:00:24 +08:00
|
|
|
mi := &file_service_ip_library_proto_msgTypes[13]
|
2020-11-05 11:51:48 +08:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *IPRegion) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*IPRegion) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *IPRegion) ProtoReflect() protoreflect.Message {
|
2021-01-13 17:00:24 +08:00
|
|
|
mi := &file_service_ip_library_proto_msgTypes[13]
|
2020-11-05 11:51:48 +08:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
return ms
|
|
|
|
|
}
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use IPRegion.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*IPRegion) Descriptor() ([]byte, []int) {
|
2021-01-13 17:00:24 +08:00
|
|
|
return file_service_ip_library_proto_rawDescGZIP(), []int{13}
|
2020-11-05 11:51:48 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *IPRegion) GetCountry() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Country
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *IPRegion) GetRegion() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Region
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *IPRegion) GetProvince() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Province
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *IPRegion) GetCity() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.City
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *IPRegion) GetIsp() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Isp
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
2020-11-20 21:59:21 +08:00
|
|
|
func (x *IPRegion) GetCountryId() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.CountryId
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *IPRegion) GetProvinceId() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.ProvinceId
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
2021-01-13 17:00:24 +08:00
|
|
|
func (x *IPRegion) GetSummary() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Summary
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
2020-11-04 15:51:38 +08:00
|
|
|
var File_service_ip_library_proto protoreflect.FileDescriptor
|
|
|
|
|
|
|
|
|
|
var file_service_ip_library_proto_rawDesc = []byte{
|
|
|
|
|
0x0a, 0x18, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x70, 0x5f, 0x6c, 0x69, 0x62,
|
2021-01-25 16:41:30 +08:00
|
|
|
0x72, 0x61, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x19,
|
|
|
|
|
0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x72, 0x70, 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61,
|
|
|
|
|
0x67, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x6d, 0x6f, 0x64, 0x65, 0x6c,
|
|
|
|
|
0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x69, 0x70, 0x5f, 0x6c, 0x69, 0x62, 0x72, 0x61,
|
|
|
|
|
0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x44, 0x0a, 0x16, 0x43, 0x72, 0x65, 0x61,
|
|
|
|
|
0x74, 0x65, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65,
|
|
|
|
|
0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
|
|
|
|
|
0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64,
|
|
|
|
|
0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x22, 0x3b,
|
|
|
|
|
0x0a, 0x17, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72,
|
|
|
|
|
0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x69, 0x70, 0x4c,
|
|
|
|
|
0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b,
|
|
|
|
|
0x69, 0x70, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x49, 0x64, 0x22, 0x3f, 0x0a, 0x1b, 0x46,
|
|
|
|
|
0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72,
|
|
|
|
|
0x61, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x69, 0x70,
|
|
|
|
|
0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
|
|
|
|
|
0x0b, 0x69, 0x70, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x49, 0x64, 0x22, 0x4b, 0x0a, 0x1c,
|
|
|
|
|
0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x4c, 0x69, 0x62,
|
|
|
|
|
0x72, 0x61, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x09,
|
2020-11-04 15:51:38 +08:00
|
|
|
0x69, 0x70, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
|
|
|
|
0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x52, 0x09,
|
2021-01-25 16:41:30 +08:00
|
|
|
0x69, 0x70, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x22, 0x38, 0x0a, 0x22, 0x46, 0x69, 0x6e,
|
|
|
|
|
0x64, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79,
|
|
|
|
|
0x57, 0x69, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
|
|
|
|
|
0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74,
|
|
|
|
|
0x79, 0x70, 0x65, 0x22, 0x52, 0x0a, 0x23, 0x46, 0x69, 0x6e, 0x64, 0x4c, 0x61, 0x74, 0x65, 0x73,
|
|
|
|
|
0x74, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x57, 0x69, 0x74, 0x68, 0x54, 0x79,
|
|
|
|
|
0x70, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x09, 0x69, 0x70,
|
|
|
|
|
0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e,
|
|
|
|
|
0x70, 0x62, 0x2e, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x52, 0x09, 0x69, 0x70,
|
|
|
|
|
0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x22, 0x3e, 0x0a, 0x28, 0x46, 0x69, 0x6e, 0x64, 0x41,
|
|
|
|
|
0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61,
|
|
|
|
|
0x72, 0x69, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75,
|
|
|
|
|
0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
|
|
|
0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x5c, 0x0a, 0x29, 0x46, 0x69, 0x6e, 0x64, 0x41,
|
2021-01-13 17:00:24 +08:00
|
|
|
0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61,
|
|
|
|
|
0x72, 0x69, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x73, 0x70,
|
2021-01-25 16:41:30 +08:00
|
|
|
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x0b, 0x69, 0x70, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72,
|
|
|
|
|
0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x49,
|
|
|
|
|
0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x52, 0x0b, 0x69, 0x70, 0x4c, 0x69, 0x62, 0x72,
|
|
|
|
|
0x61, 0x72, 0x69, 0x65, 0x73, 0x22, 0x3a, 0x0a, 0x16, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49,
|
|
|
|
|
0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
|
|
|
|
|
0x20, 0x0a, 0x0b, 0x69, 0x70, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x49, 0x64, 0x18, 0x01,
|
|
|
|
|
0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x69, 0x70, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x49,
|
|
|
|
|
0x64, 0x22, 0x27, 0x0a, 0x15, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x49, 0x50, 0x52, 0x65, 0x67,
|
|
|
|
|
0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70,
|
|
|
|
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x22, 0x42, 0x0a, 0x16, 0x4c, 0x6f,
|
|
|
|
|
0x6f, 0x6b, 0x75, 0x70, 0x49, 0x50, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70,
|
|
|
|
|
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x08, 0x69, 0x70, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e,
|
|
|
|
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x49, 0x50, 0x52, 0x65,
|
|
|
|
|
0x67, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x69, 0x70, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x22, 0x30,
|
|
|
|
|
0x0a, 0x16, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x49, 0x50, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e,
|
|
|
|
|
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x70, 0x4c, 0x69,
|
|
|
|
|
0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x69, 0x70, 0x4c, 0x69, 0x73, 0x74,
|
|
|
|
|
0x22, 0xb7, 0x01, 0x0a, 0x17, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x49, 0x50, 0x52, 0x65, 0x67,
|
|
|
|
|
0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4e, 0x0a, 0x0b,
|
|
|
|
|
0x69, 0x70, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4d, 0x61, 0x70, 0x18, 0x01, 0x20, 0x03, 0x28,
|
|
|
|
|
0x0b, 0x32, 0x2c, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x49, 0x50, 0x52,
|
|
|
|
|
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x49,
|
|
|
|
|
0x70, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52,
|
|
|
|
|
0x0b, 0x69, 0x70, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4d, 0x61, 0x70, 0x1a, 0x4c, 0x0a, 0x10,
|
|
|
|
|
0x49, 0x70, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79,
|
|
|
|
|
0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b,
|
|
|
|
|
0x65, 0x79, 0x12, 0x22, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
|
|
|
|
|
0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x49, 0x50, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52,
|
|
|
|
|
0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xd6, 0x01, 0x0a, 0x08, 0x49,
|
|
|
|
|
0x50, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74,
|
|
|
|
|
0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72,
|
|
|
|
|
0x79, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28,
|
|
|
|
|
0x09, 0x52, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f,
|
|
|
|
|
0x76, 0x69, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f,
|
|
|
|
|
0x76, 0x69, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x69, 0x74, 0x79, 0x18, 0x04, 0x20,
|
|
|
|
|
0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x69, 0x74, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x73, 0x70,
|
|
|
|
|
0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x69, 0x73, 0x70, 0x12, 0x1c, 0x0a, 0x09, 0x63,
|
|
|
|
|
0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09,
|
|
|
|
|
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x72, 0x6f,
|
|
|
|
|
0x76, 0x69, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x70,
|
|
|
|
|
0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x6d,
|
|
|
|
|
0x6d, 0x61, 0x72, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x6d, 0x6d,
|
2022-08-21 20:36:56 +08:00
|
|
|
0x61, 0x72, 0x79, 0x32, 0x99, 0x05, 0x0a, 0x10, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72,
|
2022-08-14 19:42:05 +08:00
|
|
|
0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4f, 0x0a, 0x0f, 0x63, 0x72, 0x65, 0x61,
|
2021-01-25 16:41:30 +08:00
|
|
|
0x74, 0x65, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x12, 0x1a, 0x2e, 0x70, 0x62,
|
|
|
|
|
0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79,
|
|
|
|
|
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65,
|
|
|
|
|
0x61, 0x74, 0x65, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70,
|
2022-08-14 19:42:05 +08:00
|
|
|
0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x73, 0x0a, 0x1b, 0x66, 0x69, 0x6e,
|
|
|
|
|
0x64, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79,
|
|
|
|
|
0x57, 0x69, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x12, 0x26, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69,
|
|
|
|
|
0x6e, 0x64, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72,
|
|
|
|
|
0x79, 0x57, 0x69, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
|
|
|
|
0x1a, 0x27, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74,
|
|
|
|
|
0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x57, 0x69, 0x74, 0x68, 0x54, 0x79, 0x70,
|
|
|
|
|
0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x5e,
|
|
|
|
|
0x0a, 0x14, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x4c,
|
|
|
|
|
0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x12, 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64,
|
|
|
|
|
0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79,
|
|
|
|
|
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e,
|
|
|
|
|
0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72,
|
|
|
|
|
0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x85,
|
|
|
|
|
0x01, 0x0a, 0x21, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65,
|
|
|
|
|
0x64, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68,
|
|
|
|
|
0x54, 0x79, 0x70, 0x65, 0x12, 0x2c, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c,
|
|
|
|
|
0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72,
|
|
|
|
|
0x69, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
|
|
|
|
|
0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45,
|
|
|
|
|
0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65,
|
|
|
|
|
0x73, 0x57, 0x69, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
|
|
|
|
0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x42, 0x0a, 0x0f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65,
|
|
|
|
|
0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x12, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x44,
|
|
|
|
|
0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x52, 0x65,
|
|
|
|
|
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75,
|
2022-08-21 20:36:56 +08:00
|
|
|
0x63, 0x63, 0x65, 0x73, 0x73, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x47, 0x0a, 0x0e, 0x6c, 0x6f,
|
2022-08-14 19:42:05 +08:00
|
|
|
0x6f, 0x6b, 0x75, 0x70, 0x49, 0x50, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x2e, 0x70,
|
|
|
|
|
0x62, 0x2e, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x49, 0x50, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e,
|
|
|
|
|
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x6f, 0x6f,
|
|
|
|
|
0x6b, 0x75, 0x70, 0x49, 0x50, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
2022-08-21 20:36:56 +08:00
|
|
|
0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x0f, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x49, 0x50, 0x52,
|
|
|
|
|
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x6f, 0x6f, 0x6b,
|
|
|
|
|
0x75, 0x70, 0x49, 0x50, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
|
|
|
|
|
0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x49, 0x50,
|
|
|
|
|
0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42,
|
|
|
|
|
0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
2020-11-04 15:51:38 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var (
|
|
|
|
|
file_service_ip_library_proto_rawDescOnce sync.Once
|
|
|
|
|
file_service_ip_library_proto_rawDescData = file_service_ip_library_proto_rawDesc
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func file_service_ip_library_proto_rawDescGZIP() []byte {
|
|
|
|
|
file_service_ip_library_proto_rawDescOnce.Do(func() {
|
|
|
|
|
file_service_ip_library_proto_rawDescData = protoimpl.X.CompressGZIP(file_service_ip_library_proto_rawDescData)
|
|
|
|
|
})
|
|
|
|
|
return file_service_ip_library_proto_rawDescData
|
|
|
|
|
}
|
|
|
|
|
|
2021-01-13 17:00:24 +08:00
|
|
|
var file_service_ip_library_proto_msgTypes = make([]protoimpl.MessageInfo, 15)
|
2020-11-04 15:51:38 +08:00
|
|
|
var file_service_ip_library_proto_goTypes = []interface{}{
|
|
|
|
|
(*CreateIPLibraryRequest)(nil), // 0: pb.CreateIPLibraryRequest
|
|
|
|
|
(*CreateIPLibraryResponse)(nil), // 1: pb.CreateIPLibraryResponse
|
|
|
|
|
(*FindEnabledIPLibraryRequest)(nil), // 2: pb.FindEnabledIPLibraryRequest
|
|
|
|
|
(*FindEnabledIPLibraryResponse)(nil), // 3: pb.FindEnabledIPLibraryResponse
|
|
|
|
|
(*FindLatestIPLibraryWithTypeRequest)(nil), // 4: pb.FindLatestIPLibraryWithTypeRequest
|
|
|
|
|
(*FindLatestIPLibraryWithTypeResponse)(nil), // 5: pb.FindLatestIPLibraryWithTypeResponse
|
|
|
|
|
(*FindAllEnabledIPLibrariesWithTypeRequest)(nil), // 6: pb.FindAllEnabledIPLibrariesWithTypeRequest
|
|
|
|
|
(*FindAllEnabledIPLibrariesWithTypeResponse)(nil), // 7: pb.FindAllEnabledIPLibrariesWithTypeResponse
|
|
|
|
|
(*DeleteIPLibraryRequest)(nil), // 8: pb.DeleteIPLibraryRequest
|
2020-11-05 11:51:48 +08:00
|
|
|
(*LookupIPRegionRequest)(nil), // 9: pb.LookupIPRegionRequest
|
|
|
|
|
(*LookupIPRegionResponse)(nil), // 10: pb.LookupIPRegionResponse
|
2021-01-13 17:00:24 +08:00
|
|
|
(*LookupIPRegionsRequest)(nil), // 11: pb.LookupIPRegionsRequest
|
|
|
|
|
(*LookupIPRegionsResponse)(nil), // 12: pb.LookupIPRegionsResponse
|
|
|
|
|
(*IPRegion)(nil), // 13: pb.IPRegion
|
|
|
|
|
nil, // 14: pb.LookupIPRegionsResponse.IpRegionMapEntry
|
|
|
|
|
(*IPLibrary)(nil), // 15: pb.IPLibrary
|
|
|
|
|
(*RPCSuccess)(nil), // 16: pb.RPCSuccess
|
2020-11-04 15:51:38 +08:00
|
|
|
}
|
|
|
|
|
var file_service_ip_library_proto_depIdxs = []int32{
|
2021-01-13 17:00:24 +08:00
|
|
|
15, // 0: pb.FindEnabledIPLibraryResponse.ipLibrary:type_name -> pb.IPLibrary
|
|
|
|
|
15, // 1: pb.FindLatestIPLibraryWithTypeResponse.ipLibrary:type_name -> pb.IPLibrary
|
|
|
|
|
15, // 2: pb.FindAllEnabledIPLibrariesWithTypeResponse.ipLibraries:type_name -> pb.IPLibrary
|
|
|
|
|
13, // 3: pb.LookupIPRegionResponse.ipRegion:type_name -> pb.IPRegion
|
|
|
|
|
14, // 4: pb.LookupIPRegionsResponse.ipRegionMap:type_name -> pb.LookupIPRegionsResponse.IpRegionMapEntry
|
|
|
|
|
13, // 5: pb.LookupIPRegionsResponse.IpRegionMapEntry.value:type_name -> pb.IPRegion
|
|
|
|
|
0, // 6: pb.IPLibraryService.createIPLibrary:input_type -> pb.CreateIPLibraryRequest
|
|
|
|
|
4, // 7: pb.IPLibraryService.findLatestIPLibraryWithType:input_type -> pb.FindLatestIPLibraryWithTypeRequest
|
|
|
|
|
2, // 8: pb.IPLibraryService.findEnabledIPLibrary:input_type -> pb.FindEnabledIPLibraryRequest
|
|
|
|
|
6, // 9: pb.IPLibraryService.findAllEnabledIPLibrariesWithType:input_type -> pb.FindAllEnabledIPLibrariesWithTypeRequest
|
|
|
|
|
8, // 10: pb.IPLibraryService.deleteIPLibrary:input_type -> pb.DeleteIPLibraryRequest
|
|
|
|
|
9, // 11: pb.IPLibraryService.lookupIPRegion:input_type -> pb.LookupIPRegionRequest
|
|
|
|
|
11, // 12: pb.IPLibraryService.lookupIPRegions:input_type -> pb.LookupIPRegionsRequest
|
|
|
|
|
1, // 13: pb.IPLibraryService.createIPLibrary:output_type -> pb.CreateIPLibraryResponse
|
|
|
|
|
5, // 14: pb.IPLibraryService.findLatestIPLibraryWithType:output_type -> pb.FindLatestIPLibraryWithTypeResponse
|
|
|
|
|
3, // 15: pb.IPLibraryService.findEnabledIPLibrary:output_type -> pb.FindEnabledIPLibraryResponse
|
|
|
|
|
7, // 16: pb.IPLibraryService.findAllEnabledIPLibrariesWithType:output_type -> pb.FindAllEnabledIPLibrariesWithTypeResponse
|
|
|
|
|
16, // 17: pb.IPLibraryService.deleteIPLibrary:output_type -> pb.RPCSuccess
|
|
|
|
|
10, // 18: pb.IPLibraryService.lookupIPRegion:output_type -> pb.LookupIPRegionResponse
|
|
|
|
|
12, // 19: pb.IPLibraryService.lookupIPRegions:output_type -> pb.LookupIPRegionsResponse
|
|
|
|
|
13, // [13:20] is the sub-list for method output_type
|
|
|
|
|
6, // [6:13] is the sub-list for method input_type
|
|
|
|
|
6, // [6:6] is the sub-list for extension type_name
|
|
|
|
|
6, // [6:6] is the sub-list for extension extendee
|
|
|
|
|
0, // [0:6] is the sub-list for field type_name
|
2020-11-04 15:51:38 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func init() { file_service_ip_library_proto_init() }
|
|
|
|
|
func file_service_ip_library_proto_init() {
|
|
|
|
|
if File_service_ip_library_proto != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
2021-01-25 16:41:30 +08:00
|
|
|
file_models_rpc_messages_proto_init()
|
|
|
|
|
file_models_model_ip_library_proto_init()
|
2020-11-04 15:51:38 +08:00
|
|
|
if !protoimpl.UnsafeEnabled {
|
|
|
|
|
file_service_ip_library_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*CreateIPLibraryRequest); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_service_ip_library_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*CreateIPLibraryResponse); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_service_ip_library_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*FindEnabledIPLibraryRequest); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_service_ip_library_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*FindEnabledIPLibraryResponse); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_service_ip_library_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*FindLatestIPLibraryWithTypeRequest); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_service_ip_library_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*FindLatestIPLibraryWithTypeResponse); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_service_ip_library_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*FindAllEnabledIPLibrariesWithTypeRequest); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_service_ip_library_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*FindAllEnabledIPLibrariesWithTypeResponse); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_service_ip_library_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*DeleteIPLibraryRequest); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-11-05 11:51:48 +08:00
|
|
|
file_service_ip_library_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*LookupIPRegionRequest); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_service_ip_library_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*LookupIPRegionResponse); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_service_ip_library_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
2021-01-13 17:00:24 +08:00
|
|
|
switch v := v.(*LookupIPRegionsRequest); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_service_ip_library_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*LookupIPRegionsResponse); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_service_ip_library_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
|
2020-11-05 11:51:48 +08:00
|
|
|
switch v := v.(*IPRegion); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-11-04 15:51:38 +08:00
|
|
|
}
|
|
|
|
|
type x struct{}
|
|
|
|
|
out := protoimpl.TypeBuilder{
|
|
|
|
|
File: protoimpl.DescBuilder{
|
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
|
|
RawDescriptor: file_service_ip_library_proto_rawDesc,
|
|
|
|
|
NumEnums: 0,
|
2021-01-13 17:00:24 +08:00
|
|
|
NumMessages: 15,
|
2020-11-04 15:51:38 +08:00
|
|
|
NumExtensions: 0,
|
|
|
|
|
NumServices: 1,
|
|
|
|
|
},
|
|
|
|
|
GoTypes: file_service_ip_library_proto_goTypes,
|
|
|
|
|
DependencyIndexes: file_service_ip_library_proto_depIdxs,
|
|
|
|
|
MessageInfos: file_service_ip_library_proto_msgTypes,
|
|
|
|
|
}.Build()
|
|
|
|
|
File_service_ip_library_proto = out.File
|
|
|
|
|
file_service_ip_library_proto_rawDesc = nil
|
|
|
|
|
file_service_ip_library_proto_goTypes = nil
|
|
|
|
|
file_service_ip_library_proto_depIdxs = nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
|
var _ context.Context
|
|
|
|
|
var _ grpc.ClientConnInterface
|
|
|
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
|
// is compatible with the grpc package it is being compiled against.
|
|
|
|
|
const _ = grpc.SupportPackageIsVersion6
|
|
|
|
|
|
|
|
|
|
// IPLibraryServiceClient is the client API for IPLibraryService service.
|
|
|
|
|
//
|
|
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
|
|
|
type IPLibraryServiceClient interface {
|
2022-08-14 19:42:05 +08:00
|
|
|
// Deprecated: Do not use.
|
2020-11-04 15:51:38 +08:00
|
|
|
// 创建IP库
|
|
|
|
|
CreateIPLibrary(ctx context.Context, in *CreateIPLibraryRequest, opts ...grpc.CallOption) (*CreateIPLibraryResponse, error)
|
2022-08-14 19:42:05 +08:00
|
|
|
// Deprecated: Do not use.
|
2020-11-04 15:51:38 +08:00
|
|
|
// 查找最新的IP库
|
|
|
|
|
FindLatestIPLibraryWithType(ctx context.Context, in *FindLatestIPLibraryWithTypeRequest, opts ...grpc.CallOption) (*FindLatestIPLibraryWithTypeResponse, error)
|
2022-08-14 19:42:05 +08:00
|
|
|
// Deprecated: Do not use.
|
2020-11-04 15:51:38 +08:00
|
|
|
// 查找单个IP库
|
|
|
|
|
FindEnabledIPLibrary(ctx context.Context, in *FindEnabledIPLibraryRequest, opts ...grpc.CallOption) (*FindEnabledIPLibraryResponse, error)
|
2022-08-14 19:42:05 +08:00
|
|
|
// Deprecated: Do not use.
|
2020-11-04 15:51:38 +08:00
|
|
|
// 列出某个类型的所有IP库
|
|
|
|
|
FindAllEnabledIPLibrariesWithType(ctx context.Context, in *FindAllEnabledIPLibrariesWithTypeRequest, opts ...grpc.CallOption) (*FindAllEnabledIPLibrariesWithTypeResponse, error)
|
2022-08-14 19:42:05 +08:00
|
|
|
// Deprecated: Do not use.
|
2020-11-04 15:51:38 +08:00
|
|
|
// 删除IP库
|
2020-11-13 18:23:06 +08:00
|
|
|
DeleteIPLibrary(ctx context.Context, in *DeleteIPLibraryRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
|
2020-11-05 11:51:48 +08:00
|
|
|
// 查询某个IP信息
|
|
|
|
|
LookupIPRegion(ctx context.Context, in *LookupIPRegionRequest, opts ...grpc.CallOption) (*LookupIPRegionResponse, error)
|
2021-01-13 17:00:24 +08:00
|
|
|
// 查询一组IP信息
|
|
|
|
|
LookupIPRegions(ctx context.Context, in *LookupIPRegionsRequest, opts ...grpc.CallOption) (*LookupIPRegionsResponse, error)
|
2020-11-04 15:51:38 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type iPLibraryServiceClient struct {
|
|
|
|
|
cc grpc.ClientConnInterface
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func NewIPLibraryServiceClient(cc grpc.ClientConnInterface) IPLibraryServiceClient {
|
|
|
|
|
return &iPLibraryServiceClient{cc}
|
|
|
|
|
}
|
|
|
|
|
|
2022-08-14 19:42:05 +08:00
|
|
|
// Deprecated: Do not use.
|
2020-11-04 15:51:38 +08:00
|
|
|
func (c *iPLibraryServiceClient) CreateIPLibrary(ctx context.Context, in *CreateIPLibraryRequest, opts ...grpc.CallOption) (*CreateIPLibraryResponse, error) {
|
|
|
|
|
out := new(CreateIPLibraryResponse)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/pb.IPLibraryService/createIPLibrary", in, out, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return out, nil
|
|
|
|
|
}
|
|
|
|
|
|
2022-08-14 19:42:05 +08:00
|
|
|
// Deprecated: Do not use.
|
2020-11-04 15:51:38 +08:00
|
|
|
func (c *iPLibraryServiceClient) FindLatestIPLibraryWithType(ctx context.Context, in *FindLatestIPLibraryWithTypeRequest, opts ...grpc.CallOption) (*FindLatestIPLibraryWithTypeResponse, error) {
|
|
|
|
|
out := new(FindLatestIPLibraryWithTypeResponse)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/pb.IPLibraryService/findLatestIPLibraryWithType", in, out, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return out, nil
|
|
|
|
|
}
|
|
|
|
|
|
2022-08-14 19:42:05 +08:00
|
|
|
// Deprecated: Do not use.
|
2020-11-04 15:51:38 +08:00
|
|
|
func (c *iPLibraryServiceClient) FindEnabledIPLibrary(ctx context.Context, in *FindEnabledIPLibraryRequest, opts ...grpc.CallOption) (*FindEnabledIPLibraryResponse, error) {
|
|
|
|
|
out := new(FindEnabledIPLibraryResponse)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/pb.IPLibraryService/findEnabledIPLibrary", in, out, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return out, nil
|
|
|
|
|
}
|
|
|
|
|
|
2022-08-14 19:42:05 +08:00
|
|
|
// Deprecated: Do not use.
|
2020-11-04 15:51:38 +08:00
|
|
|
func (c *iPLibraryServiceClient) FindAllEnabledIPLibrariesWithType(ctx context.Context, in *FindAllEnabledIPLibrariesWithTypeRequest, opts ...grpc.CallOption) (*FindAllEnabledIPLibrariesWithTypeResponse, error) {
|
|
|
|
|
out := new(FindAllEnabledIPLibrariesWithTypeResponse)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/pb.IPLibraryService/findAllEnabledIPLibrariesWithType", in, out, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return out, nil
|
|
|
|
|
}
|
|
|
|
|
|
2022-08-14 19:42:05 +08:00
|
|
|
// Deprecated: Do not use.
|
2020-11-13 18:23:06 +08:00
|
|
|
func (c *iPLibraryServiceClient) DeleteIPLibrary(ctx context.Context, in *DeleteIPLibraryRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
|
|
|
|
|
out := new(RPCSuccess)
|
2020-11-04 15:51:38 +08:00
|
|
|
err := c.cc.Invoke(ctx, "/pb.IPLibraryService/deleteIPLibrary", in, out, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return out, nil
|
|
|
|
|
}
|
|
|
|
|
|
2020-11-05 11:51:48 +08:00
|
|
|
func (c *iPLibraryServiceClient) LookupIPRegion(ctx context.Context, in *LookupIPRegionRequest, opts ...grpc.CallOption) (*LookupIPRegionResponse, error) {
|
|
|
|
|
out := new(LookupIPRegionResponse)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/pb.IPLibraryService/lookupIPRegion", in, out, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return out, nil
|
|
|
|
|
}
|
|
|
|
|
|
2021-01-13 17:00:24 +08:00
|
|
|
func (c *iPLibraryServiceClient) LookupIPRegions(ctx context.Context, in *LookupIPRegionsRequest, opts ...grpc.CallOption) (*LookupIPRegionsResponse, error) {
|
|
|
|
|
out := new(LookupIPRegionsResponse)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/pb.IPLibraryService/lookupIPRegions", in, out, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return out, nil
|
|
|
|
|
}
|
|
|
|
|
|
2020-11-04 15:51:38 +08:00
|
|
|
// IPLibraryServiceServer is the server API for IPLibraryService service.
|
|
|
|
|
type IPLibraryServiceServer interface {
|
2022-08-14 19:42:05 +08:00
|
|
|
// Deprecated: Do not use.
|
2020-11-04 15:51:38 +08:00
|
|
|
// 创建IP库
|
|
|
|
|
CreateIPLibrary(context.Context, *CreateIPLibraryRequest) (*CreateIPLibraryResponse, error)
|
2022-08-14 19:42:05 +08:00
|
|
|
// Deprecated: Do not use.
|
2020-11-04 15:51:38 +08:00
|
|
|
// 查找最新的IP库
|
|
|
|
|
FindLatestIPLibraryWithType(context.Context, *FindLatestIPLibraryWithTypeRequest) (*FindLatestIPLibraryWithTypeResponse, error)
|
2022-08-14 19:42:05 +08:00
|
|
|
// Deprecated: Do not use.
|
2020-11-04 15:51:38 +08:00
|
|
|
// 查找单个IP库
|
|
|
|
|
FindEnabledIPLibrary(context.Context, *FindEnabledIPLibraryRequest) (*FindEnabledIPLibraryResponse, error)
|
2022-08-14 19:42:05 +08:00
|
|
|
// Deprecated: Do not use.
|
2020-11-04 15:51:38 +08:00
|
|
|
// 列出某个类型的所有IP库
|
|
|
|
|
FindAllEnabledIPLibrariesWithType(context.Context, *FindAllEnabledIPLibrariesWithTypeRequest) (*FindAllEnabledIPLibrariesWithTypeResponse, error)
|
2022-08-14 19:42:05 +08:00
|
|
|
// Deprecated: Do not use.
|
2020-11-04 15:51:38 +08:00
|
|
|
// 删除IP库
|
2020-11-13 18:23:06 +08:00
|
|
|
DeleteIPLibrary(context.Context, *DeleteIPLibraryRequest) (*RPCSuccess, error)
|
2020-11-05 11:51:48 +08:00
|
|
|
// 查询某个IP信息
|
|
|
|
|
LookupIPRegion(context.Context, *LookupIPRegionRequest) (*LookupIPRegionResponse, error)
|
2021-01-13 17:00:24 +08:00
|
|
|
// 查询一组IP信息
|
|
|
|
|
LookupIPRegions(context.Context, *LookupIPRegionsRequest) (*LookupIPRegionsResponse, error)
|
2020-11-04 15:51:38 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// UnimplementedIPLibraryServiceServer can be embedded to have forward compatible implementations.
|
|
|
|
|
type UnimplementedIPLibraryServiceServer struct {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*UnimplementedIPLibraryServiceServer) CreateIPLibrary(context.Context, *CreateIPLibraryRequest) (*CreateIPLibraryResponse, error) {
|
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method CreateIPLibrary not implemented")
|
|
|
|
|
}
|
|
|
|
|
func (*UnimplementedIPLibraryServiceServer) FindLatestIPLibraryWithType(context.Context, *FindLatestIPLibraryWithTypeRequest) (*FindLatestIPLibraryWithTypeResponse, error) {
|
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method FindLatestIPLibraryWithType not implemented")
|
|
|
|
|
}
|
|
|
|
|
func (*UnimplementedIPLibraryServiceServer) FindEnabledIPLibrary(context.Context, *FindEnabledIPLibraryRequest) (*FindEnabledIPLibraryResponse, error) {
|
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method FindEnabledIPLibrary not implemented")
|
|
|
|
|
}
|
|
|
|
|
func (*UnimplementedIPLibraryServiceServer) FindAllEnabledIPLibrariesWithType(context.Context, *FindAllEnabledIPLibrariesWithTypeRequest) (*FindAllEnabledIPLibrariesWithTypeResponse, error) {
|
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method FindAllEnabledIPLibrariesWithType not implemented")
|
|
|
|
|
}
|
2020-11-13 18:23:06 +08:00
|
|
|
func (*UnimplementedIPLibraryServiceServer) DeleteIPLibrary(context.Context, *DeleteIPLibraryRequest) (*RPCSuccess, error) {
|
2020-11-04 15:51:38 +08:00
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method DeleteIPLibrary not implemented")
|
|
|
|
|
}
|
2020-11-05 11:51:48 +08:00
|
|
|
func (*UnimplementedIPLibraryServiceServer) LookupIPRegion(context.Context, *LookupIPRegionRequest) (*LookupIPRegionResponse, error) {
|
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method LookupIPRegion not implemented")
|
|
|
|
|
}
|
2021-01-13 17:00:24 +08:00
|
|
|
func (*UnimplementedIPLibraryServiceServer) LookupIPRegions(context.Context, *LookupIPRegionsRequest) (*LookupIPRegionsResponse, error) {
|
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method LookupIPRegions not implemented")
|
|
|
|
|
}
|
2020-11-04 15:51:38 +08:00
|
|
|
|
|
|
|
|
func RegisterIPLibraryServiceServer(s *grpc.Server, srv IPLibraryServiceServer) {
|
|
|
|
|
s.RegisterService(&_IPLibraryService_serviceDesc, srv)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func _IPLibraryService_CreateIPLibrary_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
in := new(CreateIPLibraryRequest)
|
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
if interceptor == nil {
|
|
|
|
|
return srv.(IPLibraryServiceServer).CreateIPLibrary(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
|
Server: srv,
|
|
|
|
|
FullMethod: "/pb.IPLibraryService/CreateIPLibrary",
|
|
|
|
|
}
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
return srv.(IPLibraryServiceServer).CreateIPLibrary(ctx, req.(*CreateIPLibraryRequest))
|
|
|
|
|
}
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func _IPLibraryService_FindLatestIPLibraryWithType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
in := new(FindLatestIPLibraryWithTypeRequest)
|
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
if interceptor == nil {
|
|
|
|
|
return srv.(IPLibraryServiceServer).FindLatestIPLibraryWithType(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
|
Server: srv,
|
|
|
|
|
FullMethod: "/pb.IPLibraryService/FindLatestIPLibraryWithType",
|
|
|
|
|
}
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
return srv.(IPLibraryServiceServer).FindLatestIPLibraryWithType(ctx, req.(*FindLatestIPLibraryWithTypeRequest))
|
|
|
|
|
}
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func _IPLibraryService_FindEnabledIPLibrary_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
in := new(FindEnabledIPLibraryRequest)
|
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
if interceptor == nil {
|
|
|
|
|
return srv.(IPLibraryServiceServer).FindEnabledIPLibrary(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
|
Server: srv,
|
|
|
|
|
FullMethod: "/pb.IPLibraryService/FindEnabledIPLibrary",
|
|
|
|
|
}
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
return srv.(IPLibraryServiceServer).FindEnabledIPLibrary(ctx, req.(*FindEnabledIPLibraryRequest))
|
|
|
|
|
}
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func _IPLibraryService_FindAllEnabledIPLibrariesWithType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
in := new(FindAllEnabledIPLibrariesWithTypeRequest)
|
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
if interceptor == nil {
|
|
|
|
|
return srv.(IPLibraryServiceServer).FindAllEnabledIPLibrariesWithType(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
|
Server: srv,
|
|
|
|
|
FullMethod: "/pb.IPLibraryService/FindAllEnabledIPLibrariesWithType",
|
|
|
|
|
}
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
return srv.(IPLibraryServiceServer).FindAllEnabledIPLibrariesWithType(ctx, req.(*FindAllEnabledIPLibrariesWithTypeRequest))
|
|
|
|
|
}
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func _IPLibraryService_DeleteIPLibrary_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
in := new(DeleteIPLibraryRequest)
|
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
if interceptor == nil {
|
|
|
|
|
return srv.(IPLibraryServiceServer).DeleteIPLibrary(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
|
Server: srv,
|
|
|
|
|
FullMethod: "/pb.IPLibraryService/DeleteIPLibrary",
|
|
|
|
|
}
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
return srv.(IPLibraryServiceServer).DeleteIPLibrary(ctx, req.(*DeleteIPLibraryRequest))
|
|
|
|
|
}
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
|
|
2020-11-05 11:51:48 +08:00
|
|
|
func _IPLibraryService_LookupIPRegion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
in := new(LookupIPRegionRequest)
|
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
if interceptor == nil {
|
|
|
|
|
return srv.(IPLibraryServiceServer).LookupIPRegion(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
|
Server: srv,
|
|
|
|
|
FullMethod: "/pb.IPLibraryService/LookupIPRegion",
|
|
|
|
|
}
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
return srv.(IPLibraryServiceServer).LookupIPRegion(ctx, req.(*LookupIPRegionRequest))
|
|
|
|
|
}
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
|
|
2021-01-13 17:00:24 +08:00
|
|
|
func _IPLibraryService_LookupIPRegions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
in := new(LookupIPRegionsRequest)
|
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
if interceptor == nil {
|
|
|
|
|
return srv.(IPLibraryServiceServer).LookupIPRegions(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
|
Server: srv,
|
|
|
|
|
FullMethod: "/pb.IPLibraryService/LookupIPRegions",
|
|
|
|
|
}
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
return srv.(IPLibraryServiceServer).LookupIPRegions(ctx, req.(*LookupIPRegionsRequest))
|
|
|
|
|
}
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
|
|
2020-11-04 15:51:38 +08:00
|
|
|
var _IPLibraryService_serviceDesc = grpc.ServiceDesc{
|
|
|
|
|
ServiceName: "pb.IPLibraryService",
|
|
|
|
|
HandlerType: (*IPLibraryServiceServer)(nil),
|
|
|
|
|
Methods: []grpc.MethodDesc{
|
|
|
|
|
{
|
|
|
|
|
MethodName: "createIPLibrary",
|
|
|
|
|
Handler: _IPLibraryService_CreateIPLibrary_Handler,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
MethodName: "findLatestIPLibraryWithType",
|
|
|
|
|
Handler: _IPLibraryService_FindLatestIPLibraryWithType_Handler,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
MethodName: "findEnabledIPLibrary",
|
|
|
|
|
Handler: _IPLibraryService_FindEnabledIPLibrary_Handler,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
MethodName: "findAllEnabledIPLibrariesWithType",
|
|
|
|
|
Handler: _IPLibraryService_FindAllEnabledIPLibrariesWithType_Handler,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
MethodName: "deleteIPLibrary",
|
|
|
|
|
Handler: _IPLibraryService_DeleteIPLibrary_Handler,
|
|
|
|
|
},
|
2020-11-05 11:51:48 +08:00
|
|
|
{
|
|
|
|
|
MethodName: "lookupIPRegion",
|
|
|
|
|
Handler: _IPLibraryService_LookupIPRegion_Handler,
|
|
|
|
|
},
|
2021-01-13 17:00:24 +08:00
|
|
|
{
|
|
|
|
|
MethodName: "lookupIPRegions",
|
|
|
|
|
Handler: _IPLibraryService_LookupIPRegions_Handler,
|
|
|
|
|
},
|
2020-11-04 15:51:38 +08:00
|
|
|
},
|
|
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
|
|
Metadata: "service_ip_library.proto",
|
|
|
|
|
}
|