regionagogosvc

package
v0.0.0-...-5a250f9 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2018 License: MIT Imports: 5 Imported by: 0

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) Descriptor() ([]byte, []int)

func (*Point) GetLatitude

func (m *Point) GetLatitude() float32

func (*Point) GetLongitude

func (m *Point) GetLongitude() float32

func (*Point) ProtoMessage

func (*Point) ProtoMessage()

func (*Point) Reset

func (m *Point) Reset()

func (*Point) String

func (m *Point) String() string

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

Jump to

Keyboard shortcuts

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