Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterPVZServiceServer(s grpc.ServiceRegistrar, srv PVZServiceServer)
- type GetPVZListRequest
- type GetPVZListResponse
- func (*GetPVZListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetPVZListResponse) GetPvzs() []*PVZ
- func (*GetPVZListResponse) ProtoMessage()
- func (x *GetPVZListResponse) ProtoReflect() protoreflect.Message
- func (x *GetPVZListResponse) Reset()
- func (x *GetPVZListResponse) String() string
- type PVZ
- type PVZServiceClient
- type PVZServiceServer
- type ReceptionStatus
- func (ReceptionStatus) Descriptor() protoreflect.EnumDescriptor
- func (x ReceptionStatus) Enum() *ReceptionStatus
- func (ReceptionStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x ReceptionStatus) Number() protoreflect.EnumNumber
- func (x ReceptionStatus) String() string
- func (ReceptionStatus) Type() protoreflect.EnumType
- type UnimplementedPVZServiceServer
- type UnsafePVZServiceServer
Constants ¶
const (
PVZService_GetPVZList_FullMethodName = "/pvz.v1.PVZService/GetPVZList"
)
Variables ¶
var ( ReceptionStatus_name = map[int32]string{ 0: "RECEPTION_STATUS_IN_PROGRESS", 1: "RECEPTION_STATUS_CLOSED", } ReceptionStatus_value = map[string]int32{ "RECEPTION_STATUS_IN_PROGRESS": 0, "RECEPTION_STATUS_CLOSED": 1, } )
Enum value maps for ReceptionStatus.
var File_internal_api_grpc_proto_pvz_proto protoreflect.FileDescriptor
var PVZService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pvz.v1.PVZService", HandlerType: (*PVZServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetPVZList", Handler: _PVZService_GetPVZList_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "internal/api/grpc/proto/pvz.proto", }
PVZService_ServiceDesc is the grpc.ServiceDesc for PVZService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPVZServiceServer ¶
func RegisterPVZServiceServer(s grpc.ServiceRegistrar, srv PVZServiceServer)
Types ¶
type GetPVZListRequest ¶
type GetPVZListRequest struct {
// contains filtered or unexported fields
}
func (*GetPVZListRequest) Descriptor
deprecated
func (*GetPVZListRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPVZListRequest.ProtoReflect.Descriptor instead.
func (*GetPVZListRequest) ProtoMessage ¶
func (*GetPVZListRequest) ProtoMessage()
func (*GetPVZListRequest) ProtoReflect ¶
func (x *GetPVZListRequest) ProtoReflect() protoreflect.Message
func (*GetPVZListRequest) Reset ¶
func (x *GetPVZListRequest) Reset()
func (*GetPVZListRequest) String ¶
func (x *GetPVZListRequest) String() string
type GetPVZListResponse ¶
type GetPVZListResponse struct { Pvzs []*PVZ `protobuf:"bytes,1,rep,name=pvzs,proto3" json:"pvzs,omitempty"` // contains filtered or unexported fields }
func (*GetPVZListResponse) Descriptor
deprecated
func (*GetPVZListResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetPVZListResponse.ProtoReflect.Descriptor instead.
func (*GetPVZListResponse) GetPvzs ¶
func (x *GetPVZListResponse) GetPvzs() []*PVZ
func (*GetPVZListResponse) ProtoMessage ¶
func (*GetPVZListResponse) ProtoMessage()
func (*GetPVZListResponse) ProtoReflect ¶
func (x *GetPVZListResponse) ProtoReflect() protoreflect.Message
func (*GetPVZListResponse) Reset ¶
func (x *GetPVZListResponse) Reset()
func (*GetPVZListResponse) String ¶
func (x *GetPVZListResponse) String() string
type PVZ ¶
type PVZ struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` RegistrationDate *timestamp.Timestamp `protobuf:"bytes,2,opt,name=registration_date,json=registrationDate,proto3" json:"registration_date,omitempty"` City string `protobuf:"bytes,3,opt,name=city,proto3" json:"city,omitempty"` // contains filtered or unexported fields }
func (*PVZ) Descriptor
deprecated
func (*PVZ) GetRegistrationDate ¶
func (*PVZ) ProtoMessage ¶
func (*PVZ) ProtoMessage()
func (*PVZ) ProtoReflect ¶
func (x *PVZ) ProtoReflect() protoreflect.Message
type PVZServiceClient ¶
type PVZServiceClient interface {
GetPVZList(ctx context.Context, in *GetPVZListRequest, opts ...grpc.CallOption) (*GetPVZListResponse, error)
}
PVZServiceClient is the client API for PVZService 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.
func NewPVZServiceClient ¶
func NewPVZServiceClient(cc grpc.ClientConnInterface) PVZServiceClient
type PVZServiceServer ¶
type PVZServiceServer interface { GetPVZList(context.Context, *GetPVZListRequest) (*GetPVZListResponse, error) // contains filtered or unexported methods }
PVZServiceServer is the server API for PVZService service. All implementations must embed UnimplementedPVZServiceServer for forward compatibility.
type ReceptionStatus ¶
type ReceptionStatus int32
const ( ReceptionStatus_RECEPTION_STATUS_IN_PROGRESS ReceptionStatus = 0 ReceptionStatus_RECEPTION_STATUS_CLOSED ReceptionStatus = 1 )
func (ReceptionStatus) Descriptor ¶
func (ReceptionStatus) Descriptor() protoreflect.EnumDescriptor
func (ReceptionStatus) Enum ¶
func (x ReceptionStatus) Enum() *ReceptionStatus
func (ReceptionStatus) EnumDescriptor
deprecated
func (ReceptionStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use ReceptionStatus.Descriptor instead.
func (ReceptionStatus) Number ¶
func (x ReceptionStatus) Number() protoreflect.EnumNumber
func (ReceptionStatus) String ¶
func (x ReceptionStatus) String() string
func (ReceptionStatus) Type ¶
func (ReceptionStatus) Type() protoreflect.EnumType
type UnimplementedPVZServiceServer ¶
type UnimplementedPVZServiceServer struct{}
UnimplementedPVZServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedPVZServiceServer) GetPVZList ¶
func (UnimplementedPVZServiceServer) GetPVZList(context.Context, *GetPVZListRequest) (*GetPVZListResponse, error)
type UnsafePVZServiceServer ¶
type UnsafePVZServiceServer interface {
// contains filtered or unexported methods
}
UnsafePVZServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PVZServiceServer will result in compilation errors.