Documentation
¶
Index ¶
- Variables
- func RegisterZoneManagerServer(s *grpc.Server, srv ZoneManagerServer)
- type GetPlacesResponse
- func (*GetPlacesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetPlacesResponse) GetPlaces() []*Place
- func (x *GetPlacesResponse) GetZone() *Zone
- func (*GetPlacesResponse) ProtoMessage()
- func (x *GetPlacesResponse) ProtoReflect() protoreflect.Message
- func (x *GetPlacesResponse) Reset()
- func (x *GetPlacesResponse) String() string
- type Location
- type Place
- type UnimplementedZoneManagerServer
- func (*UnimplementedZoneManagerServer) GetContainingZone(ZoneManager_GetContainingZoneServer) error
- func (*UnimplementedZoneManagerServer) GetPlacesInZone(context.Context, *Zone) (*GetPlacesResponse, error)
- func (*UnimplementedZoneManagerServer) GetUsersInZone(*Zone, ZoneManager_GetUsersInZoneServer) error
- func (*UnimplementedZoneManagerServer) GetUsersInZones(ZoneManager_GetUsersInZonesServer) error
- type User
- type UserInZone
- type Zone
- 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 ¶
View Source
var File_zone_proto protoreflect.FileDescriptor
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"`
// contains filtered or unexported fields
}
func (*GetPlacesResponse) Descriptor
deprecated
func (*GetPlacesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetPlacesResponse.ProtoReflect.Descriptor instead.
func (*GetPlacesResponse) GetPlaces ¶
func (x *GetPlacesResponse) GetPlaces() []*Place
func (*GetPlacesResponse) GetZone ¶
func (x *GetPlacesResponse) GetZone() *Zone
func (*GetPlacesResponse) ProtoMessage ¶
func (*GetPlacesResponse) ProtoMessage()
func (*GetPlacesResponse) ProtoReflect ¶
func (x *GetPlacesResponse) ProtoReflect() protoreflect.Message
func (*GetPlacesResponse) Reset ¶
func (x *GetPlacesResponse) Reset()
func (*GetPlacesResponse) String ¶
func (x *GetPlacesResponse) String() string
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"`
// contains filtered or unexported fields
}
func (*Location) Descriptor
deprecated
func (*Location) GetLatitude ¶
func (*Location) GetLongitude ¶
func (*Location) ProtoMessage ¶
func (*Location) ProtoMessage()
func (*Location) ProtoReflect ¶
func (x *Location) ProtoReflect() protoreflect.Message
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"`
// contains filtered or unexported fields
}
func (*Place) Descriptor
deprecated
func (*Place) GetLocation ¶
func (*Place) ProtoMessage ¶
func (*Place) ProtoMessage()
func (*Place) ProtoReflect ¶
func (x *Place) ProtoReflect() protoreflect.Message
type UnimplementedZoneManagerServer ¶
type UnimplementedZoneManagerServer struct {
}
UnimplementedZoneManagerServer can be embedded to have forward compatible implementations.
func (*UnimplementedZoneManagerServer) GetContainingZone ¶
func (*UnimplementedZoneManagerServer) GetContainingZone(ZoneManager_GetContainingZoneServer) error
func (*UnimplementedZoneManagerServer) GetPlacesInZone ¶
func (*UnimplementedZoneManagerServer) GetPlacesInZone(context.Context, *Zone) (*GetPlacesResponse, error)
func (*UnimplementedZoneManagerServer) GetUsersInZone ¶
func (*UnimplementedZoneManagerServer) GetUsersInZone(*Zone, ZoneManager_GetUsersInZoneServer) error
func (*UnimplementedZoneManagerServer) GetUsersInZones ¶
func (*UnimplementedZoneManagerServer) GetUsersInZones(ZoneManager_GetUsersInZonesServer) error
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"`
// contains filtered or unexported fields
}
func (*User) Descriptor
deprecated
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
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"`
// contains filtered or unexported fields
}
func (*UserInZone) Descriptor
deprecated
func (*UserInZone) Descriptor() ([]byte, []int)
Deprecated: Use UserInZone.ProtoReflect.Descriptor instead.
func (*UserInZone) GetLocation ¶
func (x *UserInZone) GetLocation() *Location
func (*UserInZone) GetUser ¶
func (x *UserInZone) GetUser() *User
func (*UserInZone) ProtoMessage ¶
func (*UserInZone) ProtoMessage()
func (*UserInZone) ProtoReflect ¶
func (x *UserInZone) ProtoReflect() protoreflect.Message
func (*UserInZone) Reset ¶
func (x *UserInZone) Reset()
func (*UserInZone) String ¶
func (x *UserInZone) String() string
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"`
// contains filtered or unexported fields
}
func (*Zone) Descriptor
deprecated
func (*Zone) GetLocation ¶
func (*Zone) ProtoMessage ¶
func (*Zone) ProtoMessage()
func (*Zone) ProtoReflect ¶
func (x *Zone) ProtoReflect() protoreflect.Message
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.ClientConnInterface) 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.