Documentation ¶
Index ¶
- Variables
- type GeoObject
- func (p *GeoObject) BLength() int
- func (p *GeoObject) DeepEqual(ano *GeoObject) bool
- func (p *GeoObject) FastRead(buf []byte) (int, error)
- func (p *GeoObject) FastReadField1(buf []byte) (int, error)
- func (p *GeoObject) FastReadField2(buf []byte) (int, error)
- func (p *GeoObject) FastReadField3(buf []byte) (int, error)
- func (p *GeoObject) FastReadField4(buf []byte) (int, error)
- func (p *GeoObject) FastReadField5(buf []byte) (int, error)
- func (p *GeoObject) FastReadField6(buf []byte) (int, error)
- func (p *GeoObject) FastReadField7(buf []byte) (int, error)
- func (p *GeoObject) FastWrite(buf []byte) int
- func (p *GeoObject) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *GeoObject) Field1DeepEqual(src string) bool
- func (p *GeoObject) Field2DeepEqual(src string) bool
- func (p *GeoObject) Field3DeepEqual(src string) bool
- func (p *GeoObject) Field4DeepEqual(src float64) bool
- func (p *GeoObject) Field5DeepEqual(src float64) bool
- func (p *GeoObject) Field6DeepEqual(src string) bool
- func (p *GeoObject) Field7DeepEqual(src string) bool
- func (p *GeoObject) GetCity() (v string)
- func (p *GeoObject) GetContinent() (v string)
- func (p *GeoObject) GetCountry() (v string)
- func (p *GeoObject) GetIsp() (v string)
- func (p *GeoObject) GetLatitude() (v float64)
- func (p *GeoObject) GetLongitude() (v float64)
- func (p *GeoObject) GetProvince() (v string)
- func (p *GeoObject) InitDefault()
- func (p *GeoObject) IsValid() error
- func (p *GeoObject) Read(iprot thrift.TProtocol) (err error)
- func (p *GeoObject) ReadField1(iprot thrift.TProtocol) error
- func (p *GeoObject) ReadField2(iprot thrift.TProtocol) error
- func (p *GeoObject) ReadField3(iprot thrift.TProtocol) error
- func (p *GeoObject) ReadField4(iprot thrift.TProtocol) error
- func (p *GeoObject) ReadField5(iprot thrift.TProtocol) error
- func (p *GeoObject) ReadField6(iprot thrift.TProtocol) error
- func (p *GeoObject) ReadField7(iprot thrift.TProtocol) error
- func (p *GeoObject) SetCity(val string)
- func (p *GeoObject) SetContinent(val string)
- func (p *GeoObject) SetCountry(val string)
- func (p *GeoObject) SetIsp(val string)
- func (p *GeoObject) SetLatitude(val float64)
- func (p *GeoObject) SetLongitude(val float64)
- func (p *GeoObject) SetProvince(val string)
- func (p *GeoObject) String() string
- func (p *GeoObject) Write(oprot thrift.TProtocol) (err error)
- type GetRequest
- func (p *GetRequest) BLength() int
- func (p *GetRequest) DeepEqual(ano *GetRequest) bool
- func (p *GetRequest) FastRead(buf []byte) (int, error)
- func (p *GetRequest) FastReadField1(buf []byte) (int, error)
- func (p *GetRequest) FastWrite(buf []byte) int
- func (p *GetRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *GetRequest) Field1DeepEqual(src Region) bool
- func (p *GetRequest) GetRegion() (v Region)
- func (p *GetRequest) InitDefault()
- func (p *GetRequest) IsValid() error
- func (p *GetRequest) Read(iprot thrift.TProtocol) (err error)
- func (p *GetRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *GetRequest) SetRegion(val Region)
- func (p *GetRequest) String() string
- func (p *GetRequest) Write(oprot thrift.TProtocol) (err error)
- type GetWithIPRequest
- func (p *GetWithIPRequest) BLength() int
- func (p *GetWithIPRequest) DeepEqual(ano *GetWithIPRequest) bool
- func (p *GetWithIPRequest) FastRead(buf []byte) (int, error)
- func (p *GetWithIPRequest) FastReadField1(buf []byte) (int, error)
- func (p *GetWithIPRequest) FastReadField2(buf []byte) (int, error)
- func (p *GetWithIPRequest) FastWrite(buf []byte) int
- func (p *GetWithIPRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *GetWithIPRequest) Field1DeepEqual(src string) bool
- func (p *GetWithIPRequest) Field2DeepEqual(src Region) bool
- func (p *GetWithIPRequest) GetIp() (v string)
- func (p *GetWithIPRequest) GetRegion() (v Region)
- func (p *GetWithIPRequest) InitDefault()
- func (p *GetWithIPRequest) IsValid() error
- func (p *GetWithIPRequest) Read(iprot thrift.TProtocol) (err error)
- func (p *GetWithIPRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *GetWithIPRequest) ReadField2(iprot thrift.TProtocol) error
- func (p *GetWithIPRequest) SetIp(val string)
- func (p *GetWithIPRequest) SetRegion(val Region)
- func (p *GetWithIPRequest) String() string
- func (p *GetWithIPRequest) Write(oprot thrift.TProtocol) (err error)
- type Region
- type Service
- type ServiceClient
- type ServiceGetArgs
- func (p *ServiceGetArgs) BLength() int
- func (p *ServiceGetArgs) DeepEqual(ano *ServiceGetArgs) bool
- func (p *ServiceGetArgs) FastRead(buf []byte) (int, error)
- func (p *ServiceGetArgs) FastReadField1(buf []byte) (int, error)
- func (p *ServiceGetArgs) FastWrite(buf []byte) int
- func (p *ServiceGetArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *ServiceGetArgs) Field1DeepEqual(src *GetRequest) bool
- func (p *ServiceGetArgs) GetFirstArgument() interface{}
- func (p *ServiceGetArgs) GetInfo() (v *GetRequest)
- func (p *ServiceGetArgs) InitDefault()
- func (p *ServiceGetArgs) IsSetInfo() bool
- func (p *ServiceGetArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *ServiceGetArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *ServiceGetArgs) SetInfo(val *GetRequest)
- func (p *ServiceGetArgs) String() string
- func (p *ServiceGetArgs) Write(oprot thrift.TProtocol) (err error)
- type ServiceGetResult
- func (p *ServiceGetResult) BLength() int
- func (p *ServiceGetResult) DeepEqual(ano *ServiceGetResult) bool
- func (p *ServiceGetResult) FastRead(buf []byte) (int, error)
- func (p *ServiceGetResult) FastReadField0(buf []byte) (int, error)
- func (p *ServiceGetResult) FastWrite(buf []byte) int
- func (p *ServiceGetResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *ServiceGetResult) Field0DeepEqual(src *GeoObject) bool
- func (p *ServiceGetResult) GetResult() interface{}
- func (p *ServiceGetResult) GetSuccess() (v *GeoObject)
- func (p *ServiceGetResult) InitDefault()
- func (p *ServiceGetResult) IsSetSuccess() bool
- func (p *ServiceGetResult) Read(iprot thrift.TProtocol) (err error)
- func (p *ServiceGetResult) ReadField0(iprot thrift.TProtocol) error
- func (p *ServiceGetResult) SetSuccess(x interface{})
- func (p *ServiceGetResult) String() string
- func (p *ServiceGetResult) Write(oprot thrift.TProtocol) (err error)
- type ServiceGetWithIPArgs
- func (p *ServiceGetWithIPArgs) BLength() int
- func (p *ServiceGetWithIPArgs) DeepEqual(ano *ServiceGetWithIPArgs) bool
- func (p *ServiceGetWithIPArgs) FastRead(buf []byte) (int, error)
- func (p *ServiceGetWithIPArgs) FastReadField1(buf []byte) (int, error)
- func (p *ServiceGetWithIPArgs) FastWrite(buf []byte) int
- func (p *ServiceGetWithIPArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *ServiceGetWithIPArgs) Field1DeepEqual(src *GetWithIPRequest) bool
- func (p *ServiceGetWithIPArgs) GetFirstArgument() interface{}
- func (p *ServiceGetWithIPArgs) GetInfo() (v *GetWithIPRequest)
- func (p *ServiceGetWithIPArgs) InitDefault()
- func (p *ServiceGetWithIPArgs) IsSetInfo() bool
- func (p *ServiceGetWithIPArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *ServiceGetWithIPArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *ServiceGetWithIPArgs) SetInfo(val *GetWithIPRequest)
- func (p *ServiceGetWithIPArgs) String() string
- func (p *ServiceGetWithIPArgs) Write(oprot thrift.TProtocol) (err error)
- type ServiceGetWithIPResult
- func (p *ServiceGetWithIPResult) BLength() int
- func (p *ServiceGetWithIPResult) DeepEqual(ano *ServiceGetWithIPResult) bool
- func (p *ServiceGetWithIPResult) FastRead(buf []byte) (int, error)
- func (p *ServiceGetWithIPResult) FastReadField0(buf []byte) (int, error)
- func (p *ServiceGetWithIPResult) FastWrite(buf []byte) int
- func (p *ServiceGetWithIPResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *ServiceGetWithIPResult) Field0DeepEqual(src *GeoObject) bool
- func (p *ServiceGetWithIPResult) GetResult() interface{}
- func (p *ServiceGetWithIPResult) GetSuccess() (v *GeoObject)
- func (p *ServiceGetWithIPResult) InitDefault()
- func (p *ServiceGetWithIPResult) IsSetSuccess() bool
- func (p *ServiceGetWithIPResult) Read(iprot thrift.TProtocol) (err error)
- func (p *ServiceGetWithIPResult) ReadField0(iprot thrift.TProtocol) error
- func (p *ServiceGetWithIPResult) SetSuccess(x interface{})
- func (p *ServiceGetWithIPResult) String() string
- func (p *ServiceGetWithIPResult) Write(oprot thrift.TProtocol) (err error)
- type ServiceProcessor
- func (p *ServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *ServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *ServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *ServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
Constants ¶
This section is empty.
Variables ¶
View Source
var KitexUnusedProtection = struct{}{}
KitexUnusedProtection is used to prevent 'imported and not used' error.
Functions ¶
This section is empty.
Types ¶
type GeoObject ¶
type GeoObject struct { Country string `thrift:"country,1" frugal:"1,default,string" json:"country"` Province string `thrift:"province,2" frugal:"2,default,string" json:"province"` City string `thrift:"city,3" frugal:"3,default,string" json:"city"` Latitude float64 `thrift:"latitude,4" frugal:"4,default,double" json:"latitude"` Longitude float64 `thrift:"longitude,5" frugal:"5,default,double" json:"longitude"` Isp string `thrift:"isp,6" frugal:"6,default,string" json:"isp"` Continent string `thrift:"continent,7" frugal:"7,default,string" json:"continent"` }
var ServiceGetResult_Success_DEFAULT *GeoObject
var ServiceGetWithIPResult_Success_DEFAULT *GeoObject
func NewGeoObject ¶
func NewGeoObject() *GeoObject
func (*GeoObject) FastWriteNocopy ¶
func (p *GeoObject) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*GeoObject) Field1DeepEqual ¶
func (*GeoObject) Field2DeepEqual ¶
func (*GeoObject) Field3DeepEqual ¶
func (*GeoObject) Field4DeepEqual ¶
func (*GeoObject) Field5DeepEqual ¶
func (*GeoObject) Field6DeepEqual ¶
func (*GeoObject) Field7DeepEqual ¶
func (*GeoObject) GetContinent ¶
func (*GeoObject) GetCountry ¶
func (*GeoObject) GetLatitude ¶
func (*GeoObject) GetLongitude ¶
func (*GeoObject) GetProvince ¶
func (*GeoObject) InitDefault ¶
func (p *GeoObject) InitDefault()
func (*GeoObject) SetContinent ¶
func (*GeoObject) SetCountry ¶
func (*GeoObject) SetLatitude ¶
func (*GeoObject) SetLongitude ¶
func (*GeoObject) SetProvince ¶
type GetRequest ¶
type GetRequest struct {
Region Region `thrift:"region,1,required" frugal:"1,required,Region" json:"region"`
}
var ServiceGetArgs_Info_DEFAULT *GetRequest
func NewGetRequest ¶
func NewGetRequest() *GetRequest
func (*GetRequest) BLength ¶
func (p *GetRequest) BLength() int
func (*GetRequest) DeepEqual ¶
func (p *GetRequest) DeepEqual(ano *GetRequest) bool
func (*GetRequest) FastReadField1 ¶
func (p *GetRequest) FastReadField1(buf []byte) (int, error)
func (*GetRequest) FastWriteNocopy ¶
func (p *GetRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*GetRequest) Field1DeepEqual ¶
func (p *GetRequest) Field1DeepEqual(src Region) bool
func (*GetRequest) GetRegion ¶
func (p *GetRequest) GetRegion() (v Region)
func (*GetRequest) InitDefault ¶
func (p *GetRequest) InitDefault()
func (*GetRequest) IsValid ¶
func (p *GetRequest) IsValid() error
func (*GetRequest) ReadField1 ¶
func (p *GetRequest) ReadField1(iprot thrift.TProtocol) error
func (*GetRequest) SetRegion ¶
func (p *GetRequest) SetRegion(val Region)
func (*GetRequest) String ¶
func (p *GetRequest) String() string
type GetWithIPRequest ¶
type GetWithIPRequest struct { Ip string `thrift:"ip,1,required" frugal:"1,required,string" json:"ip"` Region Region `thrift:"region,2,required" frugal:"2,required,Region" json:"region"` }
var ServiceGetWithIPArgs_Info_DEFAULT *GetWithIPRequest
func NewGetWithIPRequest ¶
func NewGetWithIPRequest() *GetWithIPRequest
func (*GetWithIPRequest) BLength ¶
func (p *GetWithIPRequest) BLength() int
func (*GetWithIPRequest) DeepEqual ¶
func (p *GetWithIPRequest) DeepEqual(ano *GetWithIPRequest) bool
func (*GetWithIPRequest) FastReadField1 ¶
func (p *GetWithIPRequest) FastReadField1(buf []byte) (int, error)
func (*GetWithIPRequest) FastReadField2 ¶
func (p *GetWithIPRequest) FastReadField2(buf []byte) (int, error)
func (*GetWithIPRequest) FastWrite ¶
func (p *GetWithIPRequest) FastWrite(buf []byte) int
for compatibility
func (*GetWithIPRequest) FastWriteNocopy ¶
func (p *GetWithIPRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*GetWithIPRequest) Field1DeepEqual ¶
func (p *GetWithIPRequest) Field1DeepEqual(src string) bool
func (*GetWithIPRequest) Field2DeepEqual ¶
func (p *GetWithIPRequest) Field2DeepEqual(src Region) bool
func (*GetWithIPRequest) GetIp ¶
func (p *GetWithIPRequest) GetIp() (v string)
func (*GetWithIPRequest) GetRegion ¶
func (p *GetWithIPRequest) GetRegion() (v Region)
func (*GetWithIPRequest) InitDefault ¶
func (p *GetWithIPRequest) InitDefault()
func (*GetWithIPRequest) IsValid ¶
func (p *GetWithIPRequest) IsValid() error
func (*GetWithIPRequest) ReadField1 ¶
func (p *GetWithIPRequest) ReadField1(iprot thrift.TProtocol) error
func (*GetWithIPRequest) ReadField2 ¶
func (p *GetWithIPRequest) ReadField2(iprot thrift.TProtocol) error
func (*GetWithIPRequest) SetIp ¶
func (p *GetWithIPRequest) SetIp(val string)
func (*GetWithIPRequest) SetRegion ¶
func (p *GetWithIPRequest) SetRegion(val Region)
func (*GetWithIPRequest) String ¶
func (p *GetWithIPRequest) String() string
type Service ¶
type Service interface { Get(ctx context.Context, info *GetRequest) (r *GeoObject, err error) GetWithIP(ctx context.Context, info *GetWithIPRequest) (r *GeoObject, err error) }
type ServiceClient ¶
type ServiceClient struct {
// contains filtered or unexported fields
}
func NewServiceClient ¶
func NewServiceClient(c thrift.TClient) *ServiceClient
func NewServiceClientFactory ¶
func NewServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *ServiceClient
func NewServiceClientProtocol ¶
func NewServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *ServiceClient
func (*ServiceClient) Client_ ¶
func (p *ServiceClient) Client_() thrift.TClient
func (*ServiceClient) Get ¶
func (p *ServiceClient) Get(ctx context.Context, info *GetRequest) (r *GeoObject, err error)
func (*ServiceClient) GetWithIP ¶
func (p *ServiceClient) GetWithIP(ctx context.Context, info *GetWithIPRequest) (r *GeoObject, err error)
type ServiceGetArgs ¶
type ServiceGetArgs struct {
Info *GetRequest `thrift:"info,1" frugal:"1,default,GetRequest" json:"info"`
}
func NewServiceGetArgs ¶
func NewServiceGetArgs() *ServiceGetArgs
func (*ServiceGetArgs) BLength ¶
func (p *ServiceGetArgs) BLength() int
func (*ServiceGetArgs) DeepEqual ¶
func (p *ServiceGetArgs) DeepEqual(ano *ServiceGetArgs) bool
func (*ServiceGetArgs) FastReadField1 ¶
func (p *ServiceGetArgs) FastReadField1(buf []byte) (int, error)
func (*ServiceGetArgs) FastWrite ¶
func (p *ServiceGetArgs) FastWrite(buf []byte) int
for compatibility
func (*ServiceGetArgs) FastWriteNocopy ¶
func (p *ServiceGetArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*ServiceGetArgs) Field1DeepEqual ¶
func (p *ServiceGetArgs) Field1DeepEqual(src *GetRequest) bool
func (*ServiceGetArgs) GetFirstArgument ¶
func (p *ServiceGetArgs) GetFirstArgument() interface{}
func (*ServiceGetArgs) GetInfo ¶
func (p *ServiceGetArgs) GetInfo() (v *GetRequest)
func (*ServiceGetArgs) InitDefault ¶
func (p *ServiceGetArgs) InitDefault()
func (*ServiceGetArgs) IsSetInfo ¶
func (p *ServiceGetArgs) IsSetInfo() bool
func (*ServiceGetArgs) ReadField1 ¶
func (p *ServiceGetArgs) ReadField1(iprot thrift.TProtocol) error
func (*ServiceGetArgs) SetInfo ¶
func (p *ServiceGetArgs) SetInfo(val *GetRequest)
func (*ServiceGetArgs) String ¶
func (p *ServiceGetArgs) String() string
type ServiceGetResult ¶
type ServiceGetResult struct {
Success *GeoObject `thrift:"success,0,optional" frugal:"0,optional,GeoObject" json:"success,omitempty"`
}
func NewServiceGetResult ¶
func NewServiceGetResult() *ServiceGetResult
func (*ServiceGetResult) BLength ¶
func (p *ServiceGetResult) BLength() int
func (*ServiceGetResult) DeepEqual ¶
func (p *ServiceGetResult) DeepEqual(ano *ServiceGetResult) bool
func (*ServiceGetResult) FastReadField0 ¶
func (p *ServiceGetResult) FastReadField0(buf []byte) (int, error)
func (*ServiceGetResult) FastWrite ¶
func (p *ServiceGetResult) FastWrite(buf []byte) int
for compatibility
func (*ServiceGetResult) FastWriteNocopy ¶
func (p *ServiceGetResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*ServiceGetResult) Field0DeepEqual ¶
func (p *ServiceGetResult) Field0DeepEqual(src *GeoObject) bool
func (*ServiceGetResult) GetResult ¶
func (p *ServiceGetResult) GetResult() interface{}
func (*ServiceGetResult) GetSuccess ¶
func (p *ServiceGetResult) GetSuccess() (v *GeoObject)
func (*ServiceGetResult) InitDefault ¶
func (p *ServiceGetResult) InitDefault()
func (*ServiceGetResult) IsSetSuccess ¶
func (p *ServiceGetResult) IsSetSuccess() bool
func (*ServiceGetResult) ReadField0 ¶
func (p *ServiceGetResult) ReadField0(iprot thrift.TProtocol) error
func (*ServiceGetResult) SetSuccess ¶
func (p *ServiceGetResult) SetSuccess(x interface{})
func (*ServiceGetResult) String ¶
func (p *ServiceGetResult) String() string
type ServiceGetWithIPArgs ¶
type ServiceGetWithIPArgs struct {
Info *GetWithIPRequest `thrift:"info,1" frugal:"1,default,GetWithIPRequest" json:"info"`
}
func NewServiceGetWithIPArgs ¶
func NewServiceGetWithIPArgs() *ServiceGetWithIPArgs
func (*ServiceGetWithIPArgs) BLength ¶
func (p *ServiceGetWithIPArgs) BLength() int
func (*ServiceGetWithIPArgs) DeepEqual ¶
func (p *ServiceGetWithIPArgs) DeepEqual(ano *ServiceGetWithIPArgs) bool
func (*ServiceGetWithIPArgs) FastRead ¶
func (p *ServiceGetWithIPArgs) FastRead(buf []byte) (int, error)
func (*ServiceGetWithIPArgs) FastReadField1 ¶
func (p *ServiceGetWithIPArgs) FastReadField1(buf []byte) (int, error)
func (*ServiceGetWithIPArgs) FastWrite ¶
func (p *ServiceGetWithIPArgs) FastWrite(buf []byte) int
for compatibility
func (*ServiceGetWithIPArgs) FastWriteNocopy ¶
func (p *ServiceGetWithIPArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*ServiceGetWithIPArgs) Field1DeepEqual ¶
func (p *ServiceGetWithIPArgs) Field1DeepEqual(src *GetWithIPRequest) bool
func (*ServiceGetWithIPArgs) GetFirstArgument ¶
func (p *ServiceGetWithIPArgs) GetFirstArgument() interface{}
func (*ServiceGetWithIPArgs) GetInfo ¶
func (p *ServiceGetWithIPArgs) GetInfo() (v *GetWithIPRequest)
func (*ServiceGetWithIPArgs) InitDefault ¶
func (p *ServiceGetWithIPArgs) InitDefault()
func (*ServiceGetWithIPArgs) IsSetInfo ¶
func (p *ServiceGetWithIPArgs) IsSetInfo() bool
func (*ServiceGetWithIPArgs) Read ¶
func (p *ServiceGetWithIPArgs) Read(iprot thrift.TProtocol) (err error)
func (*ServiceGetWithIPArgs) ReadField1 ¶
func (p *ServiceGetWithIPArgs) ReadField1(iprot thrift.TProtocol) error
func (*ServiceGetWithIPArgs) SetInfo ¶
func (p *ServiceGetWithIPArgs) SetInfo(val *GetWithIPRequest)
func (*ServiceGetWithIPArgs) String ¶
func (p *ServiceGetWithIPArgs) String() string
type ServiceGetWithIPResult ¶
type ServiceGetWithIPResult struct {
Success *GeoObject `thrift:"success,0,optional" frugal:"0,optional,GeoObject" json:"success,omitempty"`
}
func NewServiceGetWithIPResult ¶
func NewServiceGetWithIPResult() *ServiceGetWithIPResult
func (*ServiceGetWithIPResult) BLength ¶
func (p *ServiceGetWithIPResult) BLength() int
func (*ServiceGetWithIPResult) DeepEqual ¶
func (p *ServiceGetWithIPResult) DeepEqual(ano *ServiceGetWithIPResult) bool
func (*ServiceGetWithIPResult) FastRead ¶
func (p *ServiceGetWithIPResult) FastRead(buf []byte) (int, error)
func (*ServiceGetWithIPResult) FastReadField0 ¶
func (p *ServiceGetWithIPResult) FastReadField0(buf []byte) (int, error)
func (*ServiceGetWithIPResult) FastWrite ¶
func (p *ServiceGetWithIPResult) FastWrite(buf []byte) int
for compatibility
func (*ServiceGetWithIPResult) FastWriteNocopy ¶
func (p *ServiceGetWithIPResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*ServiceGetWithIPResult) Field0DeepEqual ¶
func (p *ServiceGetWithIPResult) Field0DeepEqual(src *GeoObject) bool
func (*ServiceGetWithIPResult) GetResult ¶
func (p *ServiceGetWithIPResult) GetResult() interface{}
func (*ServiceGetWithIPResult) GetSuccess ¶
func (p *ServiceGetWithIPResult) GetSuccess() (v *GeoObject)
func (*ServiceGetWithIPResult) InitDefault ¶
func (p *ServiceGetWithIPResult) InitDefault()
func (*ServiceGetWithIPResult) IsSetSuccess ¶
func (p *ServiceGetWithIPResult) IsSetSuccess() bool
func (*ServiceGetWithIPResult) Read ¶
func (p *ServiceGetWithIPResult) Read(iprot thrift.TProtocol) (err error)
func (*ServiceGetWithIPResult) ReadField0 ¶
func (p *ServiceGetWithIPResult) ReadField0(iprot thrift.TProtocol) error
func (*ServiceGetWithIPResult) SetSuccess ¶
func (p *ServiceGetWithIPResult) SetSuccess(x interface{})
func (*ServiceGetWithIPResult) String ¶
func (p *ServiceGetWithIPResult) String() string
type ServiceProcessor ¶
type ServiceProcessor struct {
// contains filtered or unexported fields
}
func NewServiceProcessor ¶
func NewServiceProcessor(handler Service) *ServiceProcessor
func (*ServiceProcessor) AddToProcessorMap ¶
func (p *ServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*ServiceProcessor) GetProcessorFunction ¶
func (p *ServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*ServiceProcessor) Process ¶
func (p *ServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*ServiceProcessor) ProcessorMap ¶
func (p *ServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
Click to show internal directories.
Click to hide internal directories.