Documentation
¶
Index ¶
- func Connect(host, address string)
- func RegisterAmapServer(s *grpc.Server, srv AmapServer)
- type Address
- func (*Address) Descriptor() ([]byte, []int)
- func (m *Address) GetCity() string
- func (m *Address) GetStreet() string
- func (*Address) ProtoMessage()
- func (m *Address) Reset()
- func (m *Address) String() string
- func (m *Address) XXX_DiscardUnknown()
- func (m *Address) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Address) XXX_Merge(src proto.Message)
- func (m *Address) XXX_Size() int
- func (m *Address) XXX_Unmarshal(b []byte) error
- type AmapClient
- type AmapServer
- type Geocode
- func (*Geocode) Descriptor() ([]byte, []int)
- func (m *Geocode) GetLocation() string
- func (*Geocode) ProtoMessage()
- func (m *Geocode) Reset()
- func (m *Geocode) String() string
- func (m *Geocode) XXX_DiscardUnknown()
- func (m *Geocode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Geocode) XXX_Merge(src proto.Message)
- func (m *Geocode) XXX_Size() int
- func (m *Geocode) XXX_Unmarshal(b []byte) error
- type Geocodes
- func (*Geocodes) Descriptor() ([]byte, []int)
- func (m *Geocodes) GetGeocode() []*Geocode
- func (*Geocodes) ProtoMessage()
- func (m *Geocodes) Reset()
- func (m *Geocodes) String() string
- func (m *Geocodes) XXX_DiscardUnknown()
- func (m *Geocodes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Geocodes) XXX_Merge(src proto.Message)
- func (m *Geocodes) XXX_Size() int
- func (m *Geocodes) XXX_Unmarshal(b []byte) error
- type Location
- func (*Location) Descriptor() ([]byte, []int)
- func (m *Location) GetCount() string
- func (m *Location) GetGeocodes() *Geocodes
- func (*Location) ProtoMessage()
- func (m *Location) Reset()
- func (m *Location) String() string
- func (m *Location) XXX_DiscardUnknown()
- func (m *Location) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Location) XXX_Merge(src proto.Message)
- func (m *Location) XXX_Size() int
- func (m *Location) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAmapServer ¶
func RegisterAmapServer(s *grpc.Server, srv AmapServer)
Types ¶
type Address ¶
type Address struct {
Street string `protobuf:"bytes,1,opt,name=Street,proto3" json:"Street,omitempty"`
City string `protobuf:"bytes,2,opt,name=City,proto3" json:"City,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Address) Descriptor ¶
func (*Address) ProtoMessage ¶
func (*Address) ProtoMessage()
func (*Address) XXX_DiscardUnknown ¶
func (m *Address) XXX_DiscardUnknown()
func (*Address) XXX_Marshal ¶
func (*Address) XXX_Unmarshal ¶
type AmapClient ¶
type AmapClient interface {
// 正向地理编码: 将地址描述信息转换成地理坐标(经纬度)
ForwardGeocode(ctx context.Context, in *Address, opts ...grpc.CallOption) (*Location, error)
}
AmapClient is the client API for Amap service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAmapClient ¶
func NewAmapClient(cc *grpc.ClientConn) AmapClient
type AmapServer ¶
type AmapServer interface {
// 正向地理编码: 将地址描述信息转换成地理坐标(经纬度)
ForwardGeocode(context.Context, *Address) (*Location, error)
}
AmapServer is the server API for Amap service.
type Geocode ¶ added in v0.5.33
type Geocode struct {
Location string `protobuf:"bytes,1,opt,name=Location,proto3" json:"Location,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Geocode) Descriptor ¶ added in v0.5.33
func (*Geocode) GetLocation ¶ added in v0.5.33
func (*Geocode) ProtoMessage ¶ added in v0.5.33
func (*Geocode) ProtoMessage()
func (*Geocode) XXX_DiscardUnknown ¶ added in v0.5.33
func (m *Geocode) XXX_DiscardUnknown()
func (*Geocode) XXX_Marshal ¶ added in v0.5.33
func (*Geocode) XXX_Unmarshal ¶ added in v0.5.33
type Geocodes ¶ added in v0.5.33
type Geocodes struct {
Geocode []*Geocode `protobuf:"bytes,1,rep,name=Geocode,proto3" json:"Geocode,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Geocodes) Descriptor ¶ added in v0.5.33
func (*Geocodes) GetGeocode ¶ added in v0.5.33
func (*Geocodes) ProtoMessage ¶ added in v0.5.33
func (*Geocodes) ProtoMessage()
func (*Geocodes) XXX_DiscardUnknown ¶ added in v0.5.33
func (m *Geocodes) XXX_DiscardUnknown()
func (*Geocodes) XXX_Marshal ¶ added in v0.5.33
func (*Geocodes) XXX_Unmarshal ¶ added in v0.5.33
type Location ¶
type Location struct {
Count string `protobuf:"bytes,1,opt,name=Count,proto3" json:"Count,omitempty"`
Geocodes *Geocodes `protobuf:"bytes,2,opt,name=Geocodes,proto3" json:"Geocodes,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func ForwardGeocode ¶
func (*Location) Descriptor ¶
func (*Location) GetGeocodes ¶ added in v0.5.33
func (*Location) ProtoMessage ¶
func (*Location) ProtoMessage()
func (*Location) XXX_DiscardUnknown ¶
func (m *Location) XXX_DiscardUnknown()
func (*Location) XXX_Marshal ¶
func (*Location) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.