Documentation ¶
Index ¶
- Variables
- func RegisterCustomerServiceServer(s grpc.ServiceRegistrar, srv CustomerServiceServer)
- type Customer
- func (*Customer) Descriptor() ([]byte, []int)deprecated
- func (x *Customer) GetContactPerson() string
- func (x *Customer) GetId() string
- func (x *Customer) GetName() string
- func (*Customer) ProtoMessage()
- func (x *Customer) ProtoReflect() protoreflect.Message
- func (x *Customer) Reset()
- func (x *Customer) String() string
- type CustomerRequest
- type CustomerServiceClient
- type CustomerServiceServer
- type FindByIdRequest
- type UnimplementedCustomerServiceServer
- type UnsafeCustomerServiceServer
Constants ¶
This section is empty.
Variables ¶
var CustomerService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "backoffice.CustomerService", HandlerType: (*CustomerServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "FindById", Handler: _CustomerService_FindById_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/backoffice/customer.proto", }
CustomerService_ServiceDesc is the grpc.ServiceDesc for CustomerService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_proto_backoffice_customer_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCustomerServiceServer ¶
func RegisterCustomerServiceServer(s grpc.ServiceRegistrar, srv CustomerServiceServer)
Types ¶
type Customer ¶
type Customer 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"` ContactPerson string `protobuf:"bytes,3,opt,name=contact_person,json=contactPerson,proto3" json:"contact_person,omitempty"` // contains filtered or unexported fields }
func (*Customer) Descriptor
deprecated
func (*Customer) GetContactPerson ¶
func (*Customer) ProtoMessage ¶
func (*Customer) ProtoMessage()
func (*Customer) ProtoReflect ¶
func (x *Customer) ProtoReflect() protoreflect.Message
type CustomerRequest ¶
type CustomerRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CustomerRequest) Descriptor
deprecated
func (*CustomerRequest) Descriptor() ([]byte, []int)
Deprecated: Use CustomerRequest.ProtoReflect.Descriptor instead.
func (*CustomerRequest) GetId ¶
func (x *CustomerRequest) GetId() string
func (*CustomerRequest) ProtoMessage ¶
func (*CustomerRequest) ProtoMessage()
func (*CustomerRequest) ProtoReflect ¶
func (x *CustomerRequest) ProtoReflect() protoreflect.Message
func (*CustomerRequest) Reset ¶
func (x *CustomerRequest) Reset()
func (*CustomerRequest) String ¶
func (x *CustomerRequest) String() string
type CustomerServiceClient ¶
type CustomerServiceClient interface {
FindById(ctx context.Context, in *FindByIdRequest, opts ...grpc.CallOption) (*Customer, error)
}
CustomerServiceClient is the client API for CustomerService 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 NewCustomerServiceClient ¶
func NewCustomerServiceClient(cc grpc.ClientConnInterface) CustomerServiceClient
type CustomerServiceServer ¶
type CustomerServiceServer interface { FindById(context.Context, *FindByIdRequest) (*Customer, error) // contains filtered or unexported methods }
CustomerServiceServer is the server API for CustomerService service. All implementations must embed UnimplementedCustomerServiceServer for forward compatibility
type FindByIdRequest ¶
type FindByIdRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*FindByIdRequest) Descriptor
deprecated
func (*FindByIdRequest) Descriptor() ([]byte, []int)
Deprecated: Use FindByIdRequest.ProtoReflect.Descriptor instead.
func (*FindByIdRequest) GetId ¶
func (x *FindByIdRequest) GetId() string
func (*FindByIdRequest) ProtoMessage ¶
func (*FindByIdRequest) ProtoMessage()
func (*FindByIdRequest) ProtoReflect ¶
func (x *FindByIdRequest) ProtoReflect() protoreflect.Message
func (*FindByIdRequest) Reset ¶
func (x *FindByIdRequest) Reset()
func (*FindByIdRequest) String ¶
func (x *FindByIdRequest) String() string
type UnimplementedCustomerServiceServer ¶
type UnimplementedCustomerServiceServer struct { }
UnimplementedCustomerServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedCustomerServiceServer) FindById ¶
func (UnimplementedCustomerServiceServer) FindById(context.Context, *FindByIdRequest) (*Customer, error)
type UnsafeCustomerServiceServer ¶ added in v0.0.6
type UnsafeCustomerServiceServer interface {
// contains filtered or unexported methods
}
UnsafeCustomerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CustomerServiceServer will result in compilation errors.