location

package
v0.0.0-...-1d1e641 Latest Latest
Warning

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

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

Documentation

Overview

Package location is a generated protocol buffer package.

It is generated from these files:

github.com/micro/geo-srv/proto/location/location.proto

It has these top-level messages:

ReadRequest
ReadResponse
SaveRequest
SaveResponse
SearchRequest
SearchResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterLocationHandler

func RegisterLocationHandler(s server.Server, hdlr LocationHandler)

Types

type Location

type Location struct {
	LocationHandler
}

func (*Location) Read

func (h *Location) Read(ctx context.Context, in *ReadRequest, out *ReadResponse) error

func (*Location) Save

func (h *Location) Save(ctx context.Context, in *SaveRequest, out *SaveResponse) error

func (*Location) Search

func (h *Location) Search(ctx context.Context, in *SearchRequest, out *SearchResponse) error

type LocationClient

type LocationClient interface {
	Read(ctx context.Context, in *ReadRequest, opts ...client.CallOption) (*ReadResponse, error)
	Save(ctx context.Context, in *SaveRequest, opts ...client.CallOption) (*SaveResponse, error)
	Search(ctx context.Context, in *SearchRequest, opts ...client.CallOption) (*SearchResponse, error)
}

func NewLocationClient

func NewLocationClient(serviceName string, c client.Client) LocationClient

type ReadRequest

type ReadRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
}

func (*ReadRequest) Descriptor

func (*ReadRequest) Descriptor() ([]byte, []int)

func (*ReadRequest) ProtoMessage

func (*ReadRequest) ProtoMessage()

func (*ReadRequest) Reset

func (m *ReadRequest) Reset()

func (*ReadRequest) String

func (m *ReadRequest) String() string

type ReadResponse

type ReadResponse struct {
	Entity *common.Entity `protobuf:"bytes,1,opt,name=entity" json:"entity,omitempty"`
}

func (*ReadResponse) Descriptor

func (*ReadResponse) Descriptor() ([]byte, []int)

func (*ReadResponse) GetEntity

func (m *ReadResponse) GetEntity() *common.Entity

func (*ReadResponse) ProtoMessage

func (*ReadResponse) ProtoMessage()

func (*ReadResponse) Reset

func (m *ReadResponse) Reset()

func (*ReadResponse) String

func (m *ReadResponse) String() string

type SaveRequest

type SaveRequest struct {
	Entity *common.Entity `protobuf:"bytes,1,opt,name=entity" json:"entity,omitempty"`
}

func (*SaveRequest) Descriptor

func (*SaveRequest) Descriptor() ([]byte, []int)

func (*SaveRequest) GetEntity

func (m *SaveRequest) GetEntity() *common.Entity

func (*SaveRequest) ProtoMessage

func (*SaveRequest) ProtoMessage()

func (*SaveRequest) Reset

func (m *SaveRequest) Reset()

func (*SaveRequest) String

func (m *SaveRequest) String() string

type SaveResponse

type SaveResponse struct {
}

func (*SaveResponse) Descriptor

func (*SaveResponse) Descriptor() ([]byte, []int)

func (*SaveResponse) ProtoMessage

func (*SaveResponse) ProtoMessage()

func (*SaveResponse) Reset

func (m *SaveResponse) Reset()

func (*SaveResponse) String

func (m *SaveResponse) String() string

type SearchRequest

type SearchRequest struct {
	Center      *common.Point `protobuf:"bytes,1,opt,name=center" json:"center,omitempty"`
	Radius      float64       `protobuf:"fixed64,2,opt,name=radius" json:"radius,omitempty"`
	Type        string        `protobuf:"bytes,3,opt,name=type" json:"type,omitempty"`
	NumEntities int64         `protobuf:"varint,4,opt,name=numEntities" json:"numEntities,omitempty"`
}

func (*SearchRequest) Descriptor

func (*SearchRequest) Descriptor() ([]byte, []int)

func (*SearchRequest) GetCenter

func (m *SearchRequest) GetCenter() *common.Point

func (*SearchRequest) ProtoMessage

func (*SearchRequest) ProtoMessage()

func (*SearchRequest) Reset

func (m *SearchRequest) Reset()

func (*SearchRequest) String

func (m *SearchRequest) String() string

type SearchResponse

type SearchResponse struct {
	Entities []*common.Entity `protobuf:"bytes,1,rep,name=entities" json:"entities,omitempty"`
}

func (*SearchResponse) Descriptor

func (*SearchResponse) Descriptor() ([]byte, []int)

func (*SearchResponse) GetEntities

func (m *SearchResponse) GetEntities() []*common.Entity

func (*SearchResponse) ProtoMessage

func (*SearchResponse) ProtoMessage()

func (*SearchResponse) Reset

func (m *SearchResponse) Reset()

func (*SearchResponse) String

func (m *SearchResponse) String() string

Jump to

Keyboard shortcuts

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