Documentation ¶
Overview ¶
Package regionagogosvc is a generated protocol buffer package.
It is generated from these files:
regionagogosvc.proto
It has these top-level messages:
Point RegionResponse
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRegionAGogoServer ¶
func RegisterRegionAGogoServer(s *grpc.Server, srv RegionAGogoServer)
Types ¶
type Point ¶
type Point struct { Latitude float32 `protobuf:"fixed32,1,opt,name=latitude" json:"latitude,omitempty"` Longitude float32 `protobuf:"fixed32,2,opt,name=longitude" json:"longitude,omitempty"` }
func (*Point) Descriptor ¶
func (*Point) GetLatitude ¶
func (*Point) GetLongitude ¶
func (*Point) ProtoMessage ¶
func (*Point) ProtoMessage()
type RegionAGogoClient ¶
type RegionAGogoClient interface { // Obtains the region at a given position. GetRegion(ctx context.Context, in *Point, opts ...grpc.CallOption) (*RegionResponse, error) }
func NewRegionAGogoClient ¶
func NewRegionAGogoClient(cc *grpc.ClientConn) RegionAGogoClient
type RegionAGogoServer ¶
type RegionAGogoServer interface { // Obtains the region at a given position. GetRegion(context.Context, *Point) (*RegionResponse, error) }
type RegionResponse ¶
type RegionResponse struct {
Code string `protobuf:"bytes,1,opt,name=code" json:"code,omitempty"`
}
func (*RegionResponse) Descriptor ¶
func (*RegionResponse) Descriptor() ([]byte, []int)
func (*RegionResponse) GetCode ¶
func (m *RegionResponse) GetCode() string
func (*RegionResponse) ProtoMessage ¶
func (*RegionResponse) ProtoMessage()
func (*RegionResponse) Reset ¶
func (m *RegionResponse) Reset()
func (*RegionResponse) String ¶
func (m *RegionResponse) String() string
Click to show internal directories.
Click to hide internal directories.