Documentation ¶
Index ¶
- Variables
- type GeoService
- type GeoServiceClient
- type GeoServiceGetLocationArgs
- func (p *GeoServiceGetLocationArgs) BLength() int
- func (p *GeoServiceGetLocationArgs) DeepEqual(ano *GeoServiceGetLocationArgs) bool
- func (p *GeoServiceGetLocationArgs) FastRead(buf []byte) (int, error)
- func (p *GeoServiceGetLocationArgs) FastWrite(buf []byte) int
- func (p *GeoServiceGetLocationArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *GeoServiceGetLocationArgs) GetFirstArgument() interface{}
- func (p *GeoServiceGetLocationArgs) InitDefault()
- func (p *GeoServiceGetLocationArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *GeoServiceGetLocationArgs) String() string
- func (p *GeoServiceGetLocationArgs) Write(oprot thrift.TProtocol) (err error)
- type GeoServiceGetLocationResult
- func (p *GeoServiceGetLocationResult) BLength() int
- func (p *GeoServiceGetLocationResult) DeepEqual(ano *GeoServiceGetLocationResult) bool
- func (p *GeoServiceGetLocationResult) FastRead(buf []byte) (int, error)
- func (p *GeoServiceGetLocationResult) FastReadField0(buf []byte) (int, error)
- func (p *GeoServiceGetLocationResult) FastWrite(buf []byte) int
- func (p *GeoServiceGetLocationResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *GeoServiceGetLocationResult) Field0DeepEqual(src *Location) bool
- func (p *GeoServiceGetLocationResult) GetResult() interface{}
- func (p *GeoServiceGetLocationResult) GetSuccess() (v *Location)
- func (p *GeoServiceGetLocationResult) InitDefault()
- func (p *GeoServiceGetLocationResult) IsSetSuccess() bool
- func (p *GeoServiceGetLocationResult) Read(iprot thrift.TProtocol) (err error)
- func (p *GeoServiceGetLocationResult) ReadField0(iprot thrift.TProtocol) error
- func (p *GeoServiceGetLocationResult) SetSuccess(x interface{})
- func (p *GeoServiceGetLocationResult) String() string
- func (p *GeoServiceGetLocationResult) Write(oprot thrift.TProtocol) (err error)
- type GeoServiceProcessor
- func (p *GeoServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *GeoServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *GeoServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *GeoServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type Location
- func (p *Location) BLength() int
- func (p *Location) DeepEqual(ano *Location) bool
- func (p *Location) FastRead(buf []byte) (int, error)
- func (p *Location) FastReadField1(buf []byte) (int, error)
- func (p *Location) FastReadField2(buf []byte) (int, error)
- func (p *Location) FastReadField3(buf []byte) (int, error)
- func (p *Location) FastReadField4(buf []byte) (int, error)
- func (p *Location) FastWrite(buf []byte) int
- func (p *Location) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *Location) Field1DeepEqual(src string) bool
- func (p *Location) Field2DeepEqual(src string) bool
- func (p *Location) Field3DeepEqual(src string) bool
- func (p *Location) Field4DeepEqual(src string) bool
- func (p *Location) GetCity() (v string)
- func (p *Location) GetCountry() (v string)
- func (p *Location) GetIsp() (v string)
- func (p *Location) GetRegion() (v string)
- func (p *Location) InitDefault()
- func (p *Location) Read(iprot thrift.TProtocol) (err error)
- func (p *Location) ReadField1(iprot thrift.TProtocol) error
- func (p *Location) ReadField2(iprot thrift.TProtocol) error
- func (p *Location) ReadField3(iprot thrift.TProtocol) error
- func (p *Location) ReadField4(iprot thrift.TProtocol) error
- func (p *Location) SetCity(val string)
- func (p *Location) SetCountry(val string)
- func (p *Location) SetIsp(val string)
- func (p *Location) SetRegion(val string)
- func (p *Location) String() string
- func (p *Location) Write(oprot thrift.TProtocol) (err error)
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 GeoService ¶
type GeoServiceClient ¶
type GeoServiceClient struct {
// contains filtered or unexported fields
}
func NewGeoServiceClient ¶
func NewGeoServiceClient(c thrift.TClient) *GeoServiceClient
func NewGeoServiceClientFactory ¶
func NewGeoServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *GeoServiceClient
func NewGeoServiceClientProtocol ¶
func NewGeoServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *GeoServiceClient
func (*GeoServiceClient) Client_ ¶
func (p *GeoServiceClient) Client_() thrift.TClient
func (*GeoServiceClient) GetLocation ¶
func (p *GeoServiceClient) GetLocation(ctx context.Context) (r *Location, err error)
type GeoServiceGetLocationArgs ¶
type GeoServiceGetLocationArgs struct { }
func NewGeoServiceGetLocationArgs ¶
func NewGeoServiceGetLocationArgs() *GeoServiceGetLocationArgs
func (*GeoServiceGetLocationArgs) BLength ¶
func (p *GeoServiceGetLocationArgs) BLength() int
func (*GeoServiceGetLocationArgs) DeepEqual ¶
func (p *GeoServiceGetLocationArgs) DeepEqual(ano *GeoServiceGetLocationArgs) bool
func (*GeoServiceGetLocationArgs) FastRead ¶
func (p *GeoServiceGetLocationArgs) FastRead(buf []byte) (int, error)
func (*GeoServiceGetLocationArgs) FastWrite ¶
func (p *GeoServiceGetLocationArgs) FastWrite(buf []byte) int
for compatibility
func (*GeoServiceGetLocationArgs) FastWriteNocopy ¶
func (p *GeoServiceGetLocationArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*GeoServiceGetLocationArgs) GetFirstArgument ¶
func (p *GeoServiceGetLocationArgs) GetFirstArgument() interface{}
func (*GeoServiceGetLocationArgs) InitDefault ¶
func (p *GeoServiceGetLocationArgs) InitDefault()
func (*GeoServiceGetLocationArgs) Read ¶
func (p *GeoServiceGetLocationArgs) Read(iprot thrift.TProtocol) (err error)
func (*GeoServiceGetLocationArgs) String ¶
func (p *GeoServiceGetLocationArgs) String() string
type GeoServiceGetLocationResult ¶
type GeoServiceGetLocationResult struct {
Success *Location `thrift:"success,0,optional" frugal:"0,optional,Location" json:"success,omitempty"`
}
func NewGeoServiceGetLocationResult ¶
func NewGeoServiceGetLocationResult() *GeoServiceGetLocationResult
func (*GeoServiceGetLocationResult) BLength ¶
func (p *GeoServiceGetLocationResult) BLength() int
func (*GeoServiceGetLocationResult) DeepEqual ¶
func (p *GeoServiceGetLocationResult) DeepEqual(ano *GeoServiceGetLocationResult) bool
func (*GeoServiceGetLocationResult) FastRead ¶
func (p *GeoServiceGetLocationResult) FastRead(buf []byte) (int, error)
func (*GeoServiceGetLocationResult) FastReadField0 ¶
func (p *GeoServiceGetLocationResult) FastReadField0(buf []byte) (int, error)
func (*GeoServiceGetLocationResult) FastWrite ¶
func (p *GeoServiceGetLocationResult) FastWrite(buf []byte) int
for compatibility
func (*GeoServiceGetLocationResult) FastWriteNocopy ¶
func (p *GeoServiceGetLocationResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*GeoServiceGetLocationResult) Field0DeepEqual ¶
func (p *GeoServiceGetLocationResult) Field0DeepEqual(src *Location) bool
func (*GeoServiceGetLocationResult) GetResult ¶
func (p *GeoServiceGetLocationResult) GetResult() interface{}
func (*GeoServiceGetLocationResult) GetSuccess ¶
func (p *GeoServiceGetLocationResult) GetSuccess() (v *Location)
func (*GeoServiceGetLocationResult) InitDefault ¶
func (p *GeoServiceGetLocationResult) InitDefault()
func (*GeoServiceGetLocationResult) IsSetSuccess ¶
func (p *GeoServiceGetLocationResult) IsSetSuccess() bool
func (*GeoServiceGetLocationResult) Read ¶
func (p *GeoServiceGetLocationResult) Read(iprot thrift.TProtocol) (err error)
func (*GeoServiceGetLocationResult) ReadField0 ¶
func (p *GeoServiceGetLocationResult) ReadField0(iprot thrift.TProtocol) error
func (*GeoServiceGetLocationResult) SetSuccess ¶
func (p *GeoServiceGetLocationResult) SetSuccess(x interface{})
func (*GeoServiceGetLocationResult) String ¶
func (p *GeoServiceGetLocationResult) String() string
type GeoServiceProcessor ¶
type GeoServiceProcessor struct {
// contains filtered or unexported fields
}
func NewGeoServiceProcessor ¶
func NewGeoServiceProcessor(handler GeoService) *GeoServiceProcessor
func (*GeoServiceProcessor) AddToProcessorMap ¶
func (p *GeoServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*GeoServiceProcessor) GetProcessorFunction ¶
func (p *GeoServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*GeoServiceProcessor) Process ¶
func (p *GeoServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*GeoServiceProcessor) ProcessorMap ¶
func (p *GeoServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type Location ¶
type Location struct { Country string `thrift:"country,1" frugal:"1,default,string" json:"country"` Region string `thrift:"region,2" frugal:"2,default,string" json:"region"` City string `thrift:"city,3" frugal:"3,default,string" json:"city"` Isp string `thrift:"isp,4" frugal:"4,default,string" json:"isp"` }
var GeoServiceGetLocationResult_Success_DEFAULT *Location
func NewLocation ¶
func NewLocation() *Location
func (*Location) FastWriteNocopy ¶
func (p *Location) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*Location) Field1DeepEqual ¶
func (*Location) Field2DeepEqual ¶
func (*Location) Field3DeepEqual ¶
func (*Location) Field4DeepEqual ¶
func (*Location) GetCountry ¶
func (*Location) InitDefault ¶
func (p *Location) InitDefault()
func (*Location) SetCountry ¶
Click to show internal directories.
Click to hide internal directories.