Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterPetInfoServiceServer(s grpc.ServiceRegistrar, srv PetInfoServiceServer)
- type Pet
- type PetAddRequest
- func (*PetAddRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PetAddRequest) GetIdempotencyKey() string
- func (x *PetAddRequest) GetPet() *Pet
- func (*PetAddRequest) ProtoMessage()
- func (x *PetAddRequest) ProtoReflect() protoreflect.Message
- func (x *PetAddRequest) Reset()
- func (x *PetAddRequest) String() string
- type PetAddResponse
- type PetGetMultipleRequest
- func (*PetGetMultipleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PetGetMultipleRequest) GetIDs() []string
- func (*PetGetMultipleRequest) ProtoMessage()
- func (x *PetGetMultipleRequest) ProtoReflect() protoreflect.Message
- func (x *PetGetMultipleRequest) Reset()
- func (x *PetGetMultipleRequest) String() string
- type PetGetMultipleResponse
- func (*PetGetMultipleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PetGetMultipleResponse) GetPets() []*Pet
- func (*PetGetMultipleResponse) ProtoMessage()
- func (x *PetGetMultipleResponse) ProtoReflect() protoreflect.Message
- func (x *PetGetMultipleResponse) Reset()
- func (x *PetGetMultipleResponse) String() string
- type PetGetRequest
- type PetGetResponse
- type PetInfoServiceClient
- type PetInfoServiceServer
- type PetUpdateDateOfBirthRequest
- func (*PetUpdateDateOfBirthRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PetUpdateDateOfBirthRequest) GetDateOfBirth() *timestamppb.Timestamp
- func (x *PetUpdateDateOfBirthRequest) GetID() string
- func (*PetUpdateDateOfBirthRequest) ProtoMessage()
- func (x *PetUpdateDateOfBirthRequest) ProtoReflect() protoreflect.Message
- func (x *PetUpdateDateOfBirthRequest) Reset()
- func (x *PetUpdateDateOfBirthRequest) String() string
- type PetUpdateDateOfBirthResponse
- func (*PetUpdateDateOfBirthResponse) Descriptor() ([]byte, []int)deprecated
- func (*PetUpdateDateOfBirthResponse) ProtoMessage()
- func (x *PetUpdateDateOfBirthResponse) ProtoReflect() protoreflect.Message
- func (x *PetUpdateDateOfBirthResponse) Reset()
- func (x *PetUpdateDateOfBirthResponse) String() string
- type PetUpdateNameRequest
- func (*PetUpdateNameRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PetUpdateNameRequest) GetID() string
- func (x *PetUpdateNameRequest) GetName() string
- func (*PetUpdateNameRequest) ProtoMessage()
- func (x *PetUpdateNameRequest) ProtoReflect() protoreflect.Message
- func (x *PetUpdateNameRequest) Reset()
- func (x *PetUpdateNameRequest) String() string
- type PetUpdateNameResponse
- type UnimplementedPetInfoServiceServer
- func (UnimplementedPetInfoServiceServer) Add(context.Context, *PetAddRequest) (*PetAddResponse, error)
- func (UnimplementedPetInfoServiceServer) Get(context.Context, *PetGetRequest) (*PetGetResponse, error)
- func (UnimplementedPetInfoServiceServer) GetMultiple(context.Context, *PetGetMultipleRequest) (*PetGetMultipleResponse, error)
- func (UnimplementedPetInfoServiceServer) UpdateDateOfBirth(context.Context, *PetUpdateDateOfBirthRequest) (*PetUpdateDateOfBirthResponse, error)
- func (UnimplementedPetInfoServiceServer) UpdateName(context.Context, *PetUpdateNameRequest) (*PetUpdateNameResponse, error)
- type UnsafePetInfoServiceServer
Constants ¶
const ( PetInfoService_Get_FullMethodName = "/protocol.PetInfoService/Get" PetInfoService_GetMultiple_FullMethodName = "/protocol.PetInfoService/GetMultiple" PetInfoService_UpdateName_FullMethodName = "/protocol.PetInfoService/UpdateName" PetInfoService_UpdateDateOfBirth_FullMethodName = "/protocol.PetInfoService/UpdateDateOfBirth" PetInfoService_Add_FullMethodName = "/protocol.PetInfoService/Add" )
Variables ¶
var File_pet_proto protoreflect.FileDescriptor
var PetInfoService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "protocol.PetInfoService", HandlerType: (*PetInfoServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Get", Handler: _PetInfoService_Get_Handler, }, { MethodName: "GetMultiple", Handler: _PetInfoService_GetMultiple_Handler, }, { MethodName: "UpdateName", Handler: _PetInfoService_UpdateName_Handler, }, { MethodName: "UpdateDateOfBirth", Handler: _PetInfoService_UpdateDateOfBirth_Handler, }, { MethodName: "Add", Handler: _PetInfoService_Add_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pet.proto", }
PetInfoService_ServiceDesc is the grpc.ServiceDesc for PetInfoService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPetInfoServiceServer ¶
func RegisterPetInfoServiceServer(s grpc.ServiceRegistrar, srv PetInfoServiceServer)
Types ¶
type Pet ¶
type Pet 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"` DateOfBirth *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=DateOfBirth,proto3" json:"DateOfBirth,omitempty"` // contains filtered or unexported fields }
On update of Pet, update service/petconv.go and potentially schema
func (*Pet) Descriptor
deprecated
func (*Pet) GetDateOfBirth ¶
func (x *Pet) GetDateOfBirth() *timestamppb.Timestamp
func (*Pet) ProtoMessage ¶
func (*Pet) ProtoMessage()
func (*Pet) ProtoReflect ¶
func (x *Pet) ProtoReflect() protoreflect.Message
type PetAddRequest ¶
type PetAddRequest struct { IdempotencyKey string `protobuf:"bytes,1,opt,name=IdempotencyKey,proto3" json:"IdempotencyKey,omitempty"` Pet *Pet `protobuf:"bytes,2,opt,name=Pet,proto3" json:"Pet,omitempty"` // contains filtered or unexported fields }
func (*PetAddRequest) Descriptor
deprecated
func (*PetAddRequest) Descriptor() ([]byte, []int)
Deprecated: Use PetAddRequest.ProtoReflect.Descriptor instead.
func (*PetAddRequest) GetIdempotencyKey ¶
func (x *PetAddRequest) GetIdempotencyKey() string
func (*PetAddRequest) GetPet ¶
func (x *PetAddRequest) GetPet() *Pet
func (*PetAddRequest) ProtoMessage ¶
func (*PetAddRequest) ProtoMessage()
func (*PetAddRequest) ProtoReflect ¶
func (x *PetAddRequest) ProtoReflect() protoreflect.Message
func (*PetAddRequest) Reset ¶
func (x *PetAddRequest) Reset()
func (*PetAddRequest) String ¶
func (x *PetAddRequest) String() string
type PetAddResponse ¶
type PetAddResponse struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` // contains filtered or unexported fields }
func (*PetAddResponse) Descriptor
deprecated
func (*PetAddResponse) Descriptor() ([]byte, []int)
Deprecated: Use PetAddResponse.ProtoReflect.Descriptor instead.
func (*PetAddResponse) GetID ¶
func (x *PetAddResponse) GetID() string
func (*PetAddResponse) ProtoMessage ¶
func (*PetAddResponse) ProtoMessage()
func (*PetAddResponse) ProtoReflect ¶
func (x *PetAddResponse) ProtoReflect() protoreflect.Message
func (*PetAddResponse) Reset ¶
func (x *PetAddResponse) Reset()
func (*PetAddResponse) String ¶
func (x *PetAddResponse) String() string
type PetGetMultipleRequest ¶
type PetGetMultipleRequest struct { IDs []string `protobuf:"bytes,1,rep,name=IDs,proto3" json:"IDs,omitempty"` // contains filtered or unexported fields }
func (*PetGetMultipleRequest) Descriptor
deprecated
func (*PetGetMultipleRequest) Descriptor() ([]byte, []int)
Deprecated: Use PetGetMultipleRequest.ProtoReflect.Descriptor instead.
func (*PetGetMultipleRequest) GetIDs ¶
func (x *PetGetMultipleRequest) GetIDs() []string
func (*PetGetMultipleRequest) ProtoMessage ¶
func (*PetGetMultipleRequest) ProtoMessage()
func (*PetGetMultipleRequest) ProtoReflect ¶
func (x *PetGetMultipleRequest) ProtoReflect() protoreflect.Message
func (*PetGetMultipleRequest) Reset ¶
func (x *PetGetMultipleRequest) Reset()
func (*PetGetMultipleRequest) String ¶
func (x *PetGetMultipleRequest) String() string
type PetGetMultipleResponse ¶
type PetGetMultipleResponse struct { Pets []*Pet `protobuf:"bytes,1,rep,name=Pets,proto3" json:"Pets,omitempty"` // contains filtered or unexported fields }
func (*PetGetMultipleResponse) Descriptor
deprecated
func (*PetGetMultipleResponse) Descriptor() ([]byte, []int)
Deprecated: Use PetGetMultipleResponse.ProtoReflect.Descriptor instead.
func (*PetGetMultipleResponse) GetPets ¶
func (x *PetGetMultipleResponse) GetPets() []*Pet
func (*PetGetMultipleResponse) ProtoMessage ¶
func (*PetGetMultipleResponse) ProtoMessage()
func (*PetGetMultipleResponse) ProtoReflect ¶
func (x *PetGetMultipleResponse) ProtoReflect() protoreflect.Message
func (*PetGetMultipleResponse) Reset ¶
func (x *PetGetMultipleResponse) Reset()
func (*PetGetMultipleResponse) String ¶
func (x *PetGetMultipleResponse) String() string
type PetGetRequest ¶
type PetGetRequest struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` // contains filtered or unexported fields }
func (*PetGetRequest) Descriptor
deprecated
func (*PetGetRequest) Descriptor() ([]byte, []int)
Deprecated: Use PetGetRequest.ProtoReflect.Descriptor instead.
func (*PetGetRequest) GetID ¶
func (x *PetGetRequest) GetID() string
func (*PetGetRequest) ProtoMessage ¶
func (*PetGetRequest) ProtoMessage()
func (*PetGetRequest) ProtoReflect ¶
func (x *PetGetRequest) ProtoReflect() protoreflect.Message
func (*PetGetRequest) Reset ¶
func (x *PetGetRequest) Reset()
func (*PetGetRequest) String ¶
func (x *PetGetRequest) String() string
type PetGetResponse ¶
type PetGetResponse struct { Pet *Pet `protobuf:"bytes,1,opt,name=Pet,proto3" json:"Pet,omitempty"` // contains filtered or unexported fields }
func (*PetGetResponse) Descriptor
deprecated
func (*PetGetResponse) Descriptor() ([]byte, []int)
Deprecated: Use PetGetResponse.ProtoReflect.Descriptor instead.
func (*PetGetResponse) GetPet ¶
func (x *PetGetResponse) GetPet() *Pet
func (*PetGetResponse) ProtoMessage ¶
func (*PetGetResponse) ProtoMessage()
func (*PetGetResponse) ProtoReflect ¶
func (x *PetGetResponse) ProtoReflect() protoreflect.Message
func (*PetGetResponse) Reset ¶
func (x *PetGetResponse) Reset()
func (*PetGetResponse) String ¶
func (x *PetGetResponse) String() string
type PetInfoServiceClient ¶
type PetInfoServiceClient interface { Get(ctx context.Context, in *PetGetRequest, opts ...grpc.CallOption) (*PetGetResponse, error) GetMultiple(ctx context.Context, in *PetGetMultipleRequest, opts ...grpc.CallOption) (*PetGetMultipleResponse, error) UpdateName(ctx context.Context, in *PetUpdateNameRequest, opts ...grpc.CallOption) (*PetUpdateNameResponse, error) UpdateDateOfBirth(ctx context.Context, in *PetUpdateDateOfBirthRequest, opts ...grpc.CallOption) (*PetUpdateDateOfBirthResponse, error) Add(ctx context.Context, in *PetAddRequest, opts ...grpc.CallOption) (*PetAddResponse, error) }
PetInfoServiceClient is the client API for PetInfoService 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 NewPetInfoServiceClient ¶
func NewPetInfoServiceClient(cc grpc.ClientConnInterface) PetInfoServiceClient
type PetInfoServiceServer ¶
type PetInfoServiceServer interface { Get(context.Context, *PetGetRequest) (*PetGetResponse, error) GetMultiple(context.Context, *PetGetMultipleRequest) (*PetGetMultipleResponse, error) UpdateName(context.Context, *PetUpdateNameRequest) (*PetUpdateNameResponse, error) UpdateDateOfBirth(context.Context, *PetUpdateDateOfBirthRequest) (*PetUpdateDateOfBirthResponse, error) Add(context.Context, *PetAddRequest) (*PetAddResponse, error) // contains filtered or unexported methods }
PetInfoServiceServer is the server API for PetInfoService service. All implementations must embed UnimplementedPetInfoServiceServer for forward compatibility
type PetUpdateDateOfBirthRequest ¶
type PetUpdateDateOfBirthRequest struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` DateOfBirth *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=DateOfBirth,proto3" json:"DateOfBirth,omitempty"` // contains filtered or unexported fields }
func (*PetUpdateDateOfBirthRequest) Descriptor
deprecated
func (*PetUpdateDateOfBirthRequest) Descriptor() ([]byte, []int)
Deprecated: Use PetUpdateDateOfBirthRequest.ProtoReflect.Descriptor instead.
func (*PetUpdateDateOfBirthRequest) GetDateOfBirth ¶
func (x *PetUpdateDateOfBirthRequest) GetDateOfBirth() *timestamppb.Timestamp
func (*PetUpdateDateOfBirthRequest) GetID ¶
func (x *PetUpdateDateOfBirthRequest) GetID() string
func (*PetUpdateDateOfBirthRequest) ProtoMessage ¶
func (*PetUpdateDateOfBirthRequest) ProtoMessage()
func (*PetUpdateDateOfBirthRequest) ProtoReflect ¶
func (x *PetUpdateDateOfBirthRequest) ProtoReflect() protoreflect.Message
func (*PetUpdateDateOfBirthRequest) Reset ¶
func (x *PetUpdateDateOfBirthRequest) Reset()
func (*PetUpdateDateOfBirthRequest) String ¶
func (x *PetUpdateDateOfBirthRequest) String() string
type PetUpdateDateOfBirthResponse ¶
type PetUpdateDateOfBirthResponse struct {
// contains filtered or unexported fields
}
func (*PetUpdateDateOfBirthResponse) Descriptor
deprecated
func (*PetUpdateDateOfBirthResponse) Descriptor() ([]byte, []int)
Deprecated: Use PetUpdateDateOfBirthResponse.ProtoReflect.Descriptor instead.
func (*PetUpdateDateOfBirthResponse) ProtoMessage ¶
func (*PetUpdateDateOfBirthResponse) ProtoMessage()
func (*PetUpdateDateOfBirthResponse) ProtoReflect ¶
func (x *PetUpdateDateOfBirthResponse) ProtoReflect() protoreflect.Message
func (*PetUpdateDateOfBirthResponse) Reset ¶
func (x *PetUpdateDateOfBirthResponse) Reset()
func (*PetUpdateDateOfBirthResponse) String ¶
func (x *PetUpdateDateOfBirthResponse) String() string
type PetUpdateNameRequest ¶
type PetUpdateNameRequest 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 (*PetUpdateNameRequest) Descriptor
deprecated
func (*PetUpdateNameRequest) Descriptor() ([]byte, []int)
Deprecated: Use PetUpdateNameRequest.ProtoReflect.Descriptor instead.
func (*PetUpdateNameRequest) GetID ¶
func (x *PetUpdateNameRequest) GetID() string
func (*PetUpdateNameRequest) GetName ¶
func (x *PetUpdateNameRequest) GetName() string
func (*PetUpdateNameRequest) ProtoMessage ¶
func (*PetUpdateNameRequest) ProtoMessage()
func (*PetUpdateNameRequest) ProtoReflect ¶
func (x *PetUpdateNameRequest) ProtoReflect() protoreflect.Message
func (*PetUpdateNameRequest) Reset ¶
func (x *PetUpdateNameRequest) Reset()
func (*PetUpdateNameRequest) String ¶
func (x *PetUpdateNameRequest) String() string
type PetUpdateNameResponse ¶
type PetUpdateNameResponse struct {
// contains filtered or unexported fields
}
func (*PetUpdateNameResponse) Descriptor
deprecated
func (*PetUpdateNameResponse) Descriptor() ([]byte, []int)
Deprecated: Use PetUpdateNameResponse.ProtoReflect.Descriptor instead.
func (*PetUpdateNameResponse) ProtoMessage ¶
func (*PetUpdateNameResponse) ProtoMessage()
func (*PetUpdateNameResponse) ProtoReflect ¶
func (x *PetUpdateNameResponse) ProtoReflect() protoreflect.Message
func (*PetUpdateNameResponse) Reset ¶
func (x *PetUpdateNameResponse) Reset()
func (*PetUpdateNameResponse) String ¶
func (x *PetUpdateNameResponse) String() string
type UnimplementedPetInfoServiceServer ¶
type UnimplementedPetInfoServiceServer struct { }
UnimplementedPetInfoServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedPetInfoServiceServer) Add ¶
func (UnimplementedPetInfoServiceServer) Add(context.Context, *PetAddRequest) (*PetAddResponse, error)
func (UnimplementedPetInfoServiceServer) Get ¶
func (UnimplementedPetInfoServiceServer) Get(context.Context, *PetGetRequest) (*PetGetResponse, error)
func (UnimplementedPetInfoServiceServer) GetMultiple ¶
func (UnimplementedPetInfoServiceServer) GetMultiple(context.Context, *PetGetMultipleRequest) (*PetGetMultipleResponse, error)
func (UnimplementedPetInfoServiceServer) UpdateDateOfBirth ¶
func (UnimplementedPetInfoServiceServer) UpdateDateOfBirth(context.Context, *PetUpdateDateOfBirthRequest) (*PetUpdateDateOfBirthResponse, error)
func (UnimplementedPetInfoServiceServer) UpdateName ¶
func (UnimplementedPetInfoServiceServer) UpdateName(context.Context, *PetUpdateNameRequest) (*PetUpdateNameResponse, error)
type UnsafePetInfoServiceServer ¶
type UnsafePetInfoServiceServer interface {
// contains filtered or unexported methods
}
UnsafePetInfoServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PetInfoServiceServer will result in compilation errors.