Versions in this module Expand all Collapse all v0 v0.0.2 Apr 6, 2023 v0.0.1 Apr 6, 2023 Changes in this version + var File_pet_proto protoreflect.FileDescriptor + var PetService_ServiceDesc = grpc.ServiceDesc + func RegisterPetServiceServer(s grpc.ServiceRegistrar, srv PetServiceServer) + type CreateRequest struct + Attrs []byte + FeatureTags []string + Price int32 + Title string + func (*CreateRequest) Descriptor() ([]byte, []int) + func (*CreateRequest) ProtoMessage() + func (req *CreateRequest) Validate() error + func (x *CreateRequest) GetAttrs() []byte + func (x *CreateRequest) GetFeatureTags() []string + func (x *CreateRequest) GetPrice() int32 + func (x *CreateRequest) GetTitle() string + func (x *CreateRequest) ProtoReflect() protoreflect.Message + func (x *CreateRequest) Reset() + func (x *CreateRequest) String() string + type CreateResponse struct + Pet *PetDTO + func (*CreateResponse) Descriptor() ([]byte, []int) + func (*CreateResponse) ProtoMessage() + func (x *CreateResponse) GetPet() *PetDTO + func (x *CreateResponse) ProtoReflect() protoreflect.Message + func (x *CreateResponse) Reset() + func (x *CreateResponse) String() string + type GetRequest struct + Id string + func (*GetRequest) Descriptor() ([]byte, []int) + func (*GetRequest) ProtoMessage() + func (req *GetRequest) Validate() error + func (x *GetRequest) GetId() string + func (x *GetRequest) ProtoReflect() protoreflect.Message + func (x *GetRequest) Reset() + func (x *GetRequest) String() string + type GetResponse struct + Pet *PetDTO + func (*GetResponse) Descriptor() ([]byte, []int) + func (*GetResponse) ProtoMessage() + func (x *GetResponse) GetPet() *PetDTO + func (x *GetResponse) ProtoReflect() protoreflect.Message + func (x *GetResponse) Reset() + func (x *GetResponse) String() string + type ListResponse struct + Pets []*PetDTO + func (*ListResponse) Descriptor() ([]byte, []int) + func (*ListResponse) ProtoMessage() + func (x *ListResponse) GetPets() []*PetDTO + func (x *ListResponse) ProtoReflect() protoreflect.Message + func (x *ListResponse) Reset() + func (x *ListResponse) String() string + type Pet struct + Attrs map[string]interface{} + CreatedAt time.Time + FeatureTags []string + ID string + Price int32 + Title string + UpdatedAt time.Time + Ver int32 + type PetDTO struct + Attrs []byte + CreatedAt *timestamppb.Timestamp + FeatureTags []string + Id string + Price int32 + Title string + UpdatedAt *timestamppb.Timestamp + Version int32 + func (*PetDTO) Descriptor() ([]byte, []int) + func (*PetDTO) ProtoMessage() + func (x *PetDTO) GetAttrs() []byte + func (x *PetDTO) GetCreatedAt() *timestamppb.Timestamp + func (x *PetDTO) GetFeatureTags() []string + func (x *PetDTO) GetId() string + func (x *PetDTO) GetPrice() int32 + func (x *PetDTO) GetTitle() string + func (x *PetDTO) GetUpdatedAt() *timestamppb.Timestamp + func (x *PetDTO) GetVersion() int32 + func (x *PetDTO) ProtoReflect() protoreflect.Message + func (x *PetDTO) Reset() + func (x *PetDTO) String() string + type PetServiceClient interface + Create func(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) + Get func(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) + List func(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListResponse, error) + Remove func(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + RemoveAll func(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) + Update func(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) + func NewPetServiceClient(cc grpc.ClientConnInterface) PetServiceClient + type PetServiceServer interface + Create func(context.Context, *CreateRequest) (*CreateResponse, error) + Get func(context.Context, *GetRequest) (*GetResponse, error) + List func(context.Context, *emptypb.Empty) (*ListResponse, error) + Remove func(context.Context, *RemoveRequest) (*emptypb.Empty, error) + RemoveAll func(context.Context, *emptypb.Empty) (*emptypb.Empty, error) + Update func(context.Context, *UpdateRequest) (*UpdateResponse, error) + type RPClient struct + func New(host string, port string, tls bool) *RPClient + func NewWithConn(conn *grpc.ClientConn) *RPClient + func NewWithURL(grpcUrl string) *RPClient + func (c *RPClient) Create(ctx context.Context, title string, price int32, featureTags []string, ...) (*Pet, error) + func (c *RPClient) Get(ctx context.Context, id string) (*Pet, error) + func (c *RPClient) List(ctx context.Context) ([]*Pet, error) + func (c *RPClient) Remove(ctx context.Context, id string) error + func (c *RPClient) RemoveAll(ctx context.Context) error + func (c *RPClient) Update(ctx context.Context, id string, title string) (*Pet, error) + type RemoveRequest struct + Id string + func (*RemoveRequest) Descriptor() ([]byte, []int) + func (*RemoveRequest) ProtoMessage() + func (req *RemoveRequest) Validate() error + func (x *RemoveRequest) GetId() string + func (x *RemoveRequest) ProtoReflect() protoreflect.Message + func (x *RemoveRequest) Reset() + func (x *RemoveRequest) String() string + type UnimplementedPetServiceServer struct + func (UnimplementedPetServiceServer) Create(context.Context, *CreateRequest) (*CreateResponse, error) + func (UnimplementedPetServiceServer) Get(context.Context, *GetRequest) (*GetResponse, error) + func (UnimplementedPetServiceServer) List(context.Context, *emptypb.Empty) (*ListResponse, error) + func (UnimplementedPetServiceServer) Remove(context.Context, *RemoveRequest) (*emptypb.Empty, error) + func (UnimplementedPetServiceServer) RemoveAll(context.Context, *emptypb.Empty) (*emptypb.Empty, error) + func (UnimplementedPetServiceServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error) + type UnsafePetServiceServer interface + type UpdateRequest struct + Id string + Title string + func (*UpdateRequest) Descriptor() ([]byte, []int) + func (*UpdateRequest) ProtoMessage() + func (req *UpdateRequest) Validate() error + func (x *UpdateRequest) GetId() string + func (x *UpdateRequest) GetTitle() string + func (x *UpdateRequest) ProtoReflect() protoreflect.Message + func (x *UpdateRequest) Reset() + func (x *UpdateRequest) String() string + type UpdateResponse struct + Pet *PetDTO + func (*UpdateResponse) Descriptor() ([]byte, []int) + func (*UpdateResponse) ProtoMessage() + func (x *UpdateResponse) GetPet() *PetDTO + func (x *UpdateResponse) ProtoReflect() protoreflect.Message + func (x *UpdateResponse) Reset() + func (x *UpdateResponse) String() string