zonePB

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 License: ISC Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ZoneManager_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "zonePB.ZoneManager",
	HandlerType: (*ZoneManagerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetPlacesInZone",
			Handler:    _ZoneManager_GetPlacesInZone_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "GetContainingZone",
			Handler:       _ZoneManager_GetContainingZone_Handler,
			ClientStreams: true,
		},
		{
			StreamName:    "GetUsersInZone",
			Handler:       _ZoneManager_GetUsersInZone_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "GetUsersInZones",
			Handler:       _ZoneManager_GetUsersInZones_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "zone.proto",
}

ZoneManager_ServiceDesc is the grpc.ServiceDesc for ZoneManager service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterZoneManagerServer

func RegisterZoneManagerServer(s grpc.ServiceRegistrar, 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) Descriptor() ([]byte, []int)

Deprecated: Use Location.ProtoReflect.Descriptor instead.

func (*Location) GetLatitude

func (x *Location) GetLatitude() float64

func (*Location) GetLongitude

func (x *Location) GetLongitude() float64

func (*Location) ProtoMessage

func (*Location) ProtoMessage()

func (*Location) ProtoReflect

func (x *Location) ProtoReflect() protoreflect.Message

func (*Location) Reset

func (x *Location) Reset()

func (*Location) String

func (x *Location) String() string

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

Deprecated: Use Place.ProtoReflect.Descriptor instead.

func (*Place) GetId

func (x *Place) GetId() string

func (*Place) GetLocation

func (x *Place) GetLocation() *Location

func (*Place) GetName

func (x *Place) GetName() string

func (*Place) ProtoMessage

func (*Place) ProtoMessage()

func (*Place) ProtoReflect

func (x *Place) ProtoReflect() protoreflect.Message

func (*Place) Reset

func (x *Place) Reset()

func (*Place) String

func (x *Place) String() string

type UnimplementedZoneManagerServer

type UnimplementedZoneManagerServer struct {
}

UnimplementedZoneManagerServer must be embedded to have forward compatible implementations.

func (UnimplementedZoneManagerServer) GetContainingZone

func (UnimplementedZoneManagerServer) GetPlacesInZone

func (UnimplementedZoneManagerServer) GetUsersInZone

func (UnimplementedZoneManagerServer) GetUsersInZones

type UnsafeZoneManagerServer

type UnsafeZoneManagerServer interface {
	// contains filtered or unexported methods
}

UnsafeZoneManagerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ZoneManagerServer will result in compilation errors.

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetId

func (x *User) GetId() string

func (*User) GetName

func (x *User) GetName() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

func (x *User) ProtoReflect() protoreflect.Message

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

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

Deprecated: Use Zone.ProtoReflect.Descriptor instead.

func (*Zone) GetLocation

func (x *Zone) GetLocation() *Location

func (*Zone) GetRadius

func (x *Zone) GetRadius() float64

func (*Zone) ProtoMessage

func (*Zone) ProtoMessage()

func (*Zone) ProtoReflect

func (x *Zone) ProtoReflect() protoreflect.Message

func (*Zone) Reset

func (x *Zone) Reset()

func (*Zone) String

func (x *Zone) String() string

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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type ZoneManagerServer

type ZoneManagerServer interface {
	GetContainingZone(ZoneManager_GetContainingZoneServer) error
	GetPlacesInZone(context.Context, *Zone) (*GetPlacesResponse, error)
	GetUsersInZone(*Zone, ZoneManager_GetUsersInZoneServer) error
	GetUsersInZones(ZoneManager_GetUsersInZonesServer) error
	// contains filtered or unexported methods
}

ZoneManagerServer is the server API for ZoneManager service. All implementations must embed UnimplementedZoneManagerServer for forward compatibility

type ZoneManager_GetContainingZoneClient

type ZoneManager_GetContainingZoneClient interface {
	Send(*Location) error
	CloseAndRecv() (*Zone, error)
	grpc.ClientStream
}

type ZoneManager_GetContainingZoneServer

type ZoneManager_GetContainingZoneServer interface {
	SendAndClose(*Zone) error
	Recv() (*Location, error)
	grpc.ServerStream
}

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
}

Jump to

Keyboard shortcuts

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