zonePB

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2020 License: ISC Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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) 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 can be embedded to have forward compatible implementations.

func (*UnimplementedZoneManagerServer) GetContainingZone

func (*UnimplementedZoneManagerServer) GetPlacesInZone

func (*UnimplementedZoneManagerServer) GetUsersInZone

func (*UnimplementedZoneManagerServer) GetUsersInZones

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://godoc.org/google.golang.org/grpc#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
}

ZoneManagerServer is the server API for ZoneManager service.

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