zonePB

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: ISC Imports: 5 Imported by: 0

Documentation

Index

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

func (*Location) GetLatitude

func (m *Location) GetLatitude() float64

func (*Location) GetLongitude

func (m *Location) GetLongitude() float64

func (*Location) ProtoMessage

func (*Location) ProtoMessage()

func (*Location) Reset

func (m *Location) Reset()

func (*Location) String

func (m *Location) String() string

func (*Location) XXX_DiscardUnknown

func (m *Location) XXX_DiscardUnknown()

func (*Location) XXX_Marshal

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

func (*Location) XXX_Merge

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

func (*Location) XXX_Size

func (m *Location) XXX_Size() int

func (*Location) XXX_Unmarshal

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

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

func (*Place) GetId

func (m *Place) GetId() string

func (*Place) GetLocation

func (m *Place) GetLocation() *Location

func (*Place) GetName

func (m *Place) GetName() string

func (*Place) ProtoMessage

func (*Place) ProtoMessage()

func (*Place) Reset

func (m *Place) Reset()

func (*Place) String

func (m *Place) String() string

func (*Place) XXX_DiscardUnknown

func (m *Place) XXX_DiscardUnknown()

func (*Place) XXX_Marshal

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

func (*Place) XXX_Merge

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

func (*Place) XXX_Size

func (m *Place) XXX_Size() int

func (*Place) XXX_Unmarshal

func (m *Place) XXX_Unmarshal(b []byte) 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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*User) Descriptor

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

func (*User) GetId

func (m *User) GetId() string

func (*User) GetName

func (m *User) GetName() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) Reset

func (m *User) Reset()

func (*User) String

func (m *User) String() string

func (*User) XXX_DiscardUnknown

func (m *User) XXX_DiscardUnknown()

func (*User) XXX_Marshal

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

func (*User) XXX_Merge

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

func (*User) XXX_Size

func (m *User) XXX_Size() int

func (*User) XXX_Unmarshal

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

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

func (*Zone) GetLocation

func (m *Zone) GetLocation() *Location

func (*Zone) GetRadius

func (m *Zone) GetRadius() float64

func (*Zone) ProtoMessage

func (*Zone) ProtoMessage()

func (*Zone) Reset

func (m *Zone) Reset()

func (*Zone) String

func (m *Zone) String() string

func (*Zone) XXX_DiscardUnknown

func (m *Zone) XXX_DiscardUnknown()

func (*Zone) XXX_Marshal

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

func (*Zone) XXX_Merge

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

func (*Zone) XXX_Size

func (m *Zone) XXX_Size() int

func (*Zone) XXX_Unmarshal

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

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_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