Documentation ¶
Index ¶
- func RegisterZoneManagerServer(s *grpc.Server, srv ZoneManagerServer)
- type GetPlacesResponse
- func (*GetPlacesResponse) Descriptor() ([]byte, []int)
- func (m *GetPlacesResponse) GetPlaces() []*Place
- func (m *GetPlacesResponse) GetZone() *Zone
- func (*GetPlacesResponse) ProtoMessage()
- func (m *GetPlacesResponse) Reset()
- func (m *GetPlacesResponse) String() string
- func (m *GetPlacesResponse) XXX_DiscardUnknown()
- func (m *GetPlacesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetPlacesResponse) XXX_Merge(src proto.Message)
- func (m *GetPlacesResponse) XXX_Size() int
- func (m *GetPlacesResponse) XXX_Unmarshal(b []byte) error
- type Location
- func (*Location) Descriptor() ([]byte, []int)
- func (m *Location) GetLatitude() float64
- func (m *Location) GetLongitude() float64
- 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 (m *Location) XXX_Merge(src proto.Message)
- func (m *Location) XXX_Size() int
- func (m *Location) XXX_Unmarshal(b []byte) error
- type Place
- func (*Place) Descriptor() ([]byte, []int)
- func (m *Place) GetId() string
- func (m *Place) GetLocation() *Location
- func (m *Place) GetName() string
- func (*Place) ProtoMessage()
- func (m *Place) Reset()
- func (m *Place) String() string
- func (m *Place) XXX_DiscardUnknown()
- func (m *Place) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Place) XXX_Merge(src proto.Message)
- func (m *Place) XXX_Size() int
- func (m *Place) XXX_Unmarshal(b []byte) error
- type User
- func (*User) Descriptor() ([]byte, []int)
- func (m *User) GetId() string
- func (m *User) GetName() string
- func (*User) ProtoMessage()
- func (m *User) Reset()
- func (m *User) String() string
- func (m *User) XXX_DiscardUnknown()
- func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *User) XXX_Merge(src proto.Message)
- func (m *User) XXX_Size() int
- func (m *User) XXX_Unmarshal(b []byte) error
- type UserInZone
- func (*UserInZone) Descriptor() ([]byte, []int)
- func (m *UserInZone) GetLocation() *Location
- func (m *UserInZone) GetUser() *User
- func (*UserInZone) ProtoMessage()
- func (m *UserInZone) Reset()
- func (m *UserInZone) String() string
- func (m *UserInZone) XXX_DiscardUnknown()
- func (m *UserInZone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserInZone) XXX_Merge(src proto.Message)
- func (m *UserInZone) XXX_Size() int
- func (m *UserInZone) XXX_Unmarshal(b []byte) error
- type Zone
- func (*Zone) Descriptor() ([]byte, []int)
- func (m *Zone) GetLocation() *Location
- func (m *Zone) GetRadius() float64
- func (*Zone) ProtoMessage()
- func (m *Zone) Reset()
- func (m *Zone) String() string
- func (m *Zone) XXX_DiscardUnknown()
- func (m *Zone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Zone) XXX_Merge(src proto.Message)
- func (m *Zone) XXX_Size() int
- func (m *Zone) XXX_Unmarshal(b []byte) error
- type ZoneManagerClient
- type ZoneManagerServer
- type ZoneManager_GetContainingZoneClient
- type ZoneManager_GetContainingZoneServer
- type ZoneManager_GetUsersInZoneClient
- type ZoneManager_GetUsersInZoneServer
- type ZoneManager_GetUsersInZonesClient
- type ZoneManager_GetUsersInZonesServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterZoneManagerServer ¶
func RegisterZoneManagerServer(s *grpc.Server, srv ZoneManagerServer)
Types ¶
type GetPlacesResponse ¶
type GetPlacesResponse struct { Zone *Zone `protobuf:"bytes,1,opt,name=zone,proto3" json:"zone,omitempty"` Places []*Place `protobuf:"bytes,2,rep,name=places,proto3" json:"places,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetPlacesResponse) Descriptor ¶
func (*GetPlacesResponse) Descriptor() ([]byte, []int)
func (*GetPlacesResponse) GetPlaces ¶
func (m *GetPlacesResponse) GetPlaces() []*Place
func (*GetPlacesResponse) GetZone ¶
func (m *GetPlacesResponse) GetZone() *Zone
func (*GetPlacesResponse) ProtoMessage ¶
func (*GetPlacesResponse) ProtoMessage()
func (*GetPlacesResponse) Reset ¶
func (m *GetPlacesResponse) Reset()
func (*GetPlacesResponse) String ¶
func (m *GetPlacesResponse) String() string
func (*GetPlacesResponse) XXX_DiscardUnknown ¶
func (m *GetPlacesResponse) XXX_DiscardUnknown()
func (*GetPlacesResponse) XXX_Marshal ¶
func (m *GetPlacesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetPlacesResponse) XXX_Merge ¶
func (m *GetPlacesResponse) XXX_Merge(src proto.Message)
func (*GetPlacesResponse) XXX_Size ¶
func (m *GetPlacesResponse) XXX_Size() int
func (*GetPlacesResponse) XXX_Unmarshal ¶
func (m *GetPlacesResponse) XXX_Unmarshal(b []byte) error
type Location ¶
type Location struct { Latitude float64 `protobuf:"fixed64,1,opt,name=latitude,proto3" json:"latitude,omitempty"` Longitude float64 `protobuf:"fixed64,2,opt,name=longitude,proto3" json:"longitude,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Location) Descriptor ¶
func (*Location) GetLatitude ¶
func (*Location) GetLongitude ¶
func (*Location) ProtoMessage ¶
func (*Location) ProtoMessage()
func (*Location) XXX_DiscardUnknown ¶
func (m *Location) XXX_DiscardUnknown()
func (*Location) XXX_Marshal ¶
func (*Location) XXX_Unmarshal ¶
type Place ¶
type Place struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Location *Location `protobuf:"bytes,3,opt,name=location,proto3" json:"location,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Place) Descriptor ¶
func (*Place) GetLocation ¶
func (*Place) ProtoMessage ¶
func (*Place) ProtoMessage()
func (*Place) XXX_DiscardUnknown ¶
func (m *Place) XXX_DiscardUnknown()
func (*Place) XXX_Marshal ¶
func (*Place) XXX_Unmarshal ¶
type User ¶
type User struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*User) Descriptor ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) XXX_DiscardUnknown ¶
func (m *User) XXX_DiscardUnknown()
func (*User) XXX_Unmarshal ¶
type UserInZone ¶
type UserInZone struct { Location *Location `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"` User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserInZone) Descriptor ¶
func (*UserInZone) Descriptor() ([]byte, []int)
func (*UserInZone) GetLocation ¶
func (m *UserInZone) GetLocation() *Location
func (*UserInZone) GetUser ¶
func (m *UserInZone) GetUser() *User
func (*UserInZone) ProtoMessage ¶
func (*UserInZone) ProtoMessage()
func (*UserInZone) Reset ¶
func (m *UserInZone) Reset()
func (*UserInZone) String ¶
func (m *UserInZone) String() string
func (*UserInZone) XXX_DiscardUnknown ¶
func (m *UserInZone) XXX_DiscardUnknown()
func (*UserInZone) XXX_Marshal ¶
func (m *UserInZone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserInZone) XXX_Merge ¶
func (m *UserInZone) XXX_Merge(src proto.Message)
func (*UserInZone) XXX_Size ¶
func (m *UserInZone) XXX_Size() int
func (*UserInZone) XXX_Unmarshal ¶
func (m *UserInZone) XXX_Unmarshal(b []byte) error
type Zone ¶
type Zone struct { Location *Location `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"` Radius float64 `protobuf:"fixed64,2,opt,name=radius,proto3" json:"radius,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Zone) Descriptor ¶
func (*Zone) GetLocation ¶
func (*Zone) ProtoMessage ¶
func (*Zone) ProtoMessage()
func (*Zone) XXX_DiscardUnknown ¶
func (m *Zone) XXX_DiscardUnknown()
func (*Zone) XXX_Unmarshal ¶
type ZoneManagerClient ¶
type ZoneManagerClient interface { GetContainingZone(ctx context.Context, opts ...grpc.CallOption) (ZoneManager_GetContainingZoneClient, error) GetPlacesInZone(ctx context.Context, in *Zone, opts ...grpc.CallOption) (*GetPlacesResponse, error) GetUsersInZone(ctx context.Context, in *Zone, opts ...grpc.CallOption) (ZoneManager_GetUsersInZoneClient, error) GetUsersInZones(ctx context.Context, opts ...grpc.CallOption) (ZoneManager_GetUsersInZonesClient, error) }
ZoneManagerClient is the client API for ZoneManager service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewZoneManagerClient ¶
func NewZoneManagerClient(cc *grpc.ClientConn) ZoneManagerClient
type ZoneManagerServer ¶
type ZoneManagerServer interface { GetContainingZone(ZoneManager_GetContainingZoneServer) error GetPlacesInZone(context.Context, *Zone) (*GetPlacesResponse, error) GetUsersInZone(*Zone, ZoneManager_GetUsersInZoneServer) error GetUsersInZones(ZoneManager_GetUsersInZonesServer) error }
ZoneManagerServer is the server API for ZoneManager service.
type ZoneManager_GetUsersInZoneClient ¶
type ZoneManager_GetUsersInZoneClient interface { Recv() (*UserInZone, error) grpc.ClientStream }
type ZoneManager_GetUsersInZoneServer ¶
type ZoneManager_GetUsersInZoneServer interface { Send(*UserInZone) error grpc.ServerStream }
type ZoneManager_GetUsersInZonesClient ¶
type ZoneManager_GetUsersInZonesClient interface { Send(*Zone) error Recv() (*UserInZone, error) grpc.ClientStream }
type ZoneManager_GetUsersInZonesServer ¶
type ZoneManager_GetUsersInZonesServer interface { Send(*UserInZone) error Recv() (*Zone, error) grpc.ServerStream }
Click to show internal directories.
Click to hide internal directories.