geo

package
v0.0.0-...-d9ed4fb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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 GeoService interface {
	GetLocation(ctx context.Context) (r *Location, err error)
}

type GeoServiceClient

type GeoServiceClient struct {
	// contains filtered or unexported fields
}

func NewGeoServiceClient

func NewGeoServiceClient(c thrift.TClient) *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 (*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

func (*GeoServiceGetLocationArgs) Write

func (p *GeoServiceGetLocationArgs) Write(oprot thrift.TProtocol) (err error)

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 (*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

func (*GeoServiceGetLocationResult) Write

func (p *GeoServiceGetLocationResult) Write(oprot thrift.TProtocol) (err error)

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) BLength

func (p *Location) BLength() int

func (*Location) DeepEqual

func (p *Location) DeepEqual(ano *Location) bool

func (*Location) FastRead

func (p *Location) FastRead(buf []byte) (int, error)

func (*Location) FastReadField1

func (p *Location) FastReadField1(buf []byte) (int, error)

func (*Location) FastReadField2

func (p *Location) FastReadField2(buf []byte) (int, error)

func (*Location) FastReadField3

func (p *Location) FastReadField3(buf []byte) (int, error)

func (*Location) FastReadField4

func (p *Location) FastReadField4(buf []byte) (int, error)

func (*Location) FastWrite

func (p *Location) FastWrite(buf []byte) int

for compatibility

func (*Location) FastWriteNocopy

func (p *Location) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*Location) Field1DeepEqual

func (p *Location) Field1DeepEqual(src string) bool

func (*Location) Field2DeepEqual

func (p *Location) Field2DeepEqual(src string) bool

func (*Location) Field3DeepEqual

func (p *Location) Field3DeepEqual(src string) bool

func (*Location) Field4DeepEqual

func (p *Location) Field4DeepEqual(src string) bool

func (*Location) GetCity

func (p *Location) GetCity() (v string)

func (*Location) GetCountry

func (p *Location) GetCountry() (v string)

func (*Location) GetIsp

func (p *Location) GetIsp() (v string)

func (*Location) GetRegion

func (p *Location) GetRegion() (v string)

func (*Location) InitDefault

func (p *Location) InitDefault()

func (*Location) Read

func (p *Location) Read(iprot thrift.TProtocol) (err error)

func (*Location) ReadField1

func (p *Location) ReadField1(iprot thrift.TProtocol) error

func (*Location) ReadField2

func (p *Location) ReadField2(iprot thrift.TProtocol) error

func (*Location) ReadField3

func (p *Location) ReadField3(iprot thrift.TProtocol) error

func (*Location) ReadField4

func (p *Location) ReadField4(iprot thrift.TProtocol) error

func (*Location) SetCity

func (p *Location) SetCity(val string)

func (*Location) SetCountry

func (p *Location) SetCountry(val string)

func (*Location) SetIsp

func (p *Location) SetIsp(val string)

func (*Location) SetRegion

func (p *Location) SetRegion(val string)

func (*Location) String

func (p *Location) String() string

func (*Location) Write

func (p *Location) Write(oprot thrift.TProtocol) (err error)

Directories

Path Synopsis
Code generated by Kitex v0.6.1.
Code generated by Kitex v0.6.1.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL