Documentation ¶
Index ¶
- Variables
- func RegisterIPSearchServer(s *grpc.Server, srv IPSearchServer)
- type IPSearchClient
- type IPSearchRequest
- type IPSearchResponse
- func (*IPSearchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *IPSearchResponse) GetCity() string
- func (x *IPSearchResponse) GetCityId() int64
- func (x *IPSearchResponse) GetCountry() string
- func (x *IPSearchResponse) GetIsp() string
- func (x *IPSearchResponse) GetRegion() string
- func (*IPSearchResponse) ProtoMessage()
- func (x *IPSearchResponse) ProtoReflect() protoreflect.Message
- func (x *IPSearchResponse) Reset()
- func (x *IPSearchResponse) String() string
- type IPSearchServer
- type UnimplementedIPSearchServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_smart_dns_ip_proto protoreflect.FileDescriptor
Functions ¶
func RegisterIPSearchServer ¶
func RegisterIPSearchServer(s *grpc.Server, srv IPSearchServer)
Types ¶
type IPSearchClient ¶
type IPSearchClient interface {
IPSearch(ctx context.Context, in *IPSearchRequest, opts ...grpc.CallOption) (*IPSearchResponse, error)
}
IPSearchClient is the client API for IPSearch service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewIPSearchClient ¶
func NewIPSearchClient(cc grpc.ClientConnInterface) IPSearchClient
type IPSearchRequest ¶
type IPSearchRequest struct { Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` // contains filtered or unexported fields }
func (*IPSearchRequest) Descriptor
deprecated
func (*IPSearchRequest) Descriptor() ([]byte, []int)
Deprecated: Use IPSearchRequest.ProtoReflect.Descriptor instead.
func (*IPSearchRequest) GetIp ¶
func (x *IPSearchRequest) GetIp() string
func (*IPSearchRequest) ProtoMessage ¶
func (*IPSearchRequest) ProtoMessage()
func (*IPSearchRequest) ProtoReflect ¶
func (x *IPSearchRequest) ProtoReflect() protoreflect.Message
func (*IPSearchRequest) Reset ¶
func (x *IPSearchRequest) Reset()
func (*IPSearchRequest) String ¶
func (x *IPSearchRequest) String() string
type IPSearchResponse ¶
type IPSearchResponse struct { CityId int64 `protobuf:"varint,1,opt,name=cityId,proto3" json:"cityId,omitempty"` Country string `protobuf:"bytes,2,opt,name=country,proto3" json:"country,omitempty"` Region string `protobuf:"bytes,3,opt,name=region,proto3" json:"region,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"` // contains filtered or unexported fields }
func (*IPSearchResponse) Descriptor
deprecated
func (*IPSearchResponse) Descriptor() ([]byte, []int)
Deprecated: Use IPSearchResponse.ProtoReflect.Descriptor instead.
func (*IPSearchResponse) GetCity ¶
func (x *IPSearchResponse) GetCity() string
func (*IPSearchResponse) GetCityId ¶
func (x *IPSearchResponse) GetCityId() int64
func (*IPSearchResponse) GetCountry ¶
func (x *IPSearchResponse) GetCountry() string
func (*IPSearchResponse) GetIsp ¶
func (x *IPSearchResponse) GetIsp() string
func (*IPSearchResponse) GetRegion ¶
func (x *IPSearchResponse) GetRegion() string
func (*IPSearchResponse) ProtoMessage ¶
func (*IPSearchResponse) ProtoMessage()
func (*IPSearchResponse) ProtoReflect ¶
func (x *IPSearchResponse) ProtoReflect() protoreflect.Message
func (*IPSearchResponse) Reset ¶
func (x *IPSearchResponse) Reset()
func (*IPSearchResponse) String ¶
func (x *IPSearchResponse) String() string
type IPSearchServer ¶
type IPSearchServer interface {
IPSearch(context.Context, *IPSearchRequest) (*IPSearchResponse, error)
}
IPSearchServer is the server API for IPSearch service.
type UnimplementedIPSearchServer ¶
type UnimplementedIPSearchServer struct { }
UnimplementedIPSearchServer can be embedded to have forward compatible implementations.
func (*UnimplementedIPSearchServer) IPSearch ¶
func (*UnimplementedIPSearchServer) IPSearch(context.Context, *IPSearchRequest) (*IPSearchResponse, error)
Click to show internal directories.
Click to hide internal directories.