location

package
v0.0.0-...-6e9de5f Latest Latest
Warning

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

Go to latest
Published: May 20, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package location is a generated protocol buffer package.

It is generated from these files:

github.com/microhq/location-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, opts ...server.HandlerOption) error

func RegisterLocationServer

func RegisterLocationServer(s *grpc.Server, srv LocationServer)

Types

type LocationClient

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

LocationClient is the client API for Location service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewLocationClient

func NewLocationClient(cc *grpc.ClientConn) LocationClient

type LocationServer

type LocationServer interface {
	Read(context.Context, *ReadRequest) (*ReadResponse, error)
	Save(context.Context, *SaveRequest) (*SaveResponse, error)
	Search(context.Context, *SearchRequest) (*SearchResponse, error)
}

LocationServer is the server API for Location service.

type LocationService

type LocationService 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 NewLocationService

func NewLocationService(name string, c client.Client) LocationService

type ReadRequest

type ReadRequest struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReadRequest) Descriptor

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

func (*ReadRequest) GetId

func (m *ReadRequest) GetId() string

func (*ReadRequest) ProtoMessage

func (*ReadRequest) ProtoMessage()

func (*ReadRequest) Reset

func (m *ReadRequest) Reset()

func (*ReadRequest) String

func (m *ReadRequest) String() string

func (*ReadRequest) XXX_DiscardUnknown

func (m *ReadRequest) XXX_DiscardUnknown()

func (*ReadRequest) XXX_Marshal

func (m *ReadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReadRequest) XXX_Merge

func (m *ReadRequest) XXX_Merge(src proto.Message)

func (*ReadRequest) XXX_Size

func (m *ReadRequest) XXX_Size() int

func (*ReadRequest) XXX_Unmarshal

func (m *ReadRequest) XXX_Unmarshal(b []byte) error

type ReadResponse

type ReadResponse struct {
	Entity               *proto1.Entity `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*ReadResponse) Descriptor

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

func (*ReadResponse) GetEntity

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

func (*ReadResponse) ProtoMessage

func (*ReadResponse) ProtoMessage()

func (*ReadResponse) Reset

func (m *ReadResponse) Reset()

func (*ReadResponse) String

func (m *ReadResponse) String() string

func (*ReadResponse) XXX_DiscardUnknown

func (m *ReadResponse) XXX_DiscardUnknown()

func (*ReadResponse) XXX_Marshal

func (m *ReadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReadResponse) XXX_Merge

func (m *ReadResponse) XXX_Merge(src proto.Message)

func (*ReadResponse) XXX_Size

func (m *ReadResponse) XXX_Size() int

func (*ReadResponse) XXX_Unmarshal

func (m *ReadResponse) XXX_Unmarshal(b []byte) error

type SaveRequest

type SaveRequest struct {
	Entity               *proto1.Entity `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*SaveRequest) Descriptor

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

func (*SaveRequest) GetEntity

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

func (*SaveRequest) ProtoMessage

func (*SaveRequest) ProtoMessage()

func (*SaveRequest) Reset

func (m *SaveRequest) Reset()

func (*SaveRequest) String

func (m *SaveRequest) String() string

func (*SaveRequest) XXX_DiscardUnknown

func (m *SaveRequest) XXX_DiscardUnknown()

func (*SaveRequest) XXX_Marshal

func (m *SaveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SaveRequest) XXX_Merge

func (m *SaveRequest) XXX_Merge(src proto.Message)

func (*SaveRequest) XXX_Size

func (m *SaveRequest) XXX_Size() int

func (*SaveRequest) XXX_Unmarshal

func (m *SaveRequest) XXX_Unmarshal(b []byte) error

type SaveResponse

type SaveResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*SaveResponse) XXX_DiscardUnknown

func (m *SaveResponse) XXX_DiscardUnknown()

func (*SaveResponse) XXX_Marshal

func (m *SaveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SaveResponse) XXX_Merge

func (m *SaveResponse) XXX_Merge(src proto.Message)

func (*SaveResponse) XXX_Size

func (m *SaveResponse) XXX_Size() int

func (*SaveResponse) XXX_Unmarshal

func (m *SaveResponse) XXX_Unmarshal(b []byte) error

type SearchRequest

type SearchRequest struct {
	Center               *proto1.Point `protobuf:"bytes,1,opt,name=center,proto3" json:"center,omitempty"`
	Radius               float64       `protobuf:"fixed64,2,opt,name=radius,proto3" json:"radius,omitempty"`
	Type                 string        `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	NumEntities          int64         `protobuf:"varint,4,opt,name=numEntities,proto3" json:"numEntities,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*SearchRequest) Descriptor

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

func (*SearchRequest) GetCenter

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

func (*SearchRequest) GetNumEntities

func (m *SearchRequest) GetNumEntities() int64

func (*SearchRequest) GetRadius

func (m *SearchRequest) GetRadius() float64

func (*SearchRequest) GetType

func (m *SearchRequest) GetType() string

func (*SearchRequest) ProtoMessage

func (*SearchRequest) ProtoMessage()

func (*SearchRequest) Reset

func (m *SearchRequest) Reset()

func (*SearchRequest) String

func (m *SearchRequest) String() string

func (*SearchRequest) XXX_DiscardUnknown

func (m *SearchRequest) XXX_DiscardUnknown()

func (*SearchRequest) XXX_Marshal

func (m *SearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SearchRequest) XXX_Merge

func (m *SearchRequest) XXX_Merge(src proto.Message)

func (*SearchRequest) XXX_Size

func (m *SearchRequest) XXX_Size() int

func (*SearchRequest) XXX_Unmarshal

func (m *SearchRequest) XXX_Unmarshal(b []byte) error

type SearchResponse

type SearchResponse struct {
	Entities             []*proto1.Entity `protobuf:"bytes,1,rep,name=entities,proto3" json:"entities,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*SearchResponse) Descriptor

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

func (*SearchResponse) GetEntities

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

func (*SearchResponse) ProtoMessage

func (*SearchResponse) ProtoMessage()

func (*SearchResponse) Reset

func (m *SearchResponse) Reset()

func (*SearchResponse) String

func (m *SearchResponse) String() string

func (*SearchResponse) XXX_DiscardUnknown

func (m *SearchResponse) XXX_DiscardUnknown()

func (*SearchResponse) XXX_Marshal

func (m *SearchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SearchResponse) XXX_Merge

func (m *SearchResponse) XXX_Merge(src proto.Message)

func (*SearchResponse) XXX_Size

func (m *SearchResponse) XXX_Size() int

func (*SearchResponse) XXX_Unmarshal

func (m *SearchResponse) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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