Documentation
¶
Index ¶
- Variables
- func RegisterCustomerServiceServer(s grpc_go.ServiceRegistrar, srv CustomerServiceServer)
- type CreateCustomerRequest
- func (*CreateCustomerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCustomerRequest) GetPassword() string
- func (x *CreateCustomerRequest) GetUsername() string
- func (*CreateCustomerRequest) ProtoMessage()
- func (x *CreateCustomerRequest) ProtoReflect() protoreflect.Message
- func (x *CreateCustomerRequest) Reset()
- func (x *CreateCustomerRequest) String() string
- type CreateCustomerResponse
- func (*CreateCustomerResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCustomerResponse) GetUserId() int64
- func (*CreateCustomerResponse) ProtoMessage()
- func (x *CreateCustomerResponse) ProtoReflect() protoreflect.Message
- func (x *CreateCustomerResponse) Reset()
- func (x *CreateCustomerResponse) String() string
- type CustomerServiceClient
- type CustomerServiceClientImpl
- type CustomerServiceServer
- type UnimplementedCustomerServiceServer
- func (UnimplementedCustomerServiceServer) CreateCustomer(context.Context, *CreateCustomerRequest) (*CreateCustomerResponse, error)
- func (s *UnimplementedCustomerServiceServer) XXX_GetProxyImpl() protocol.Invoker
- func (s *UnimplementedCustomerServiceServer) XXX_InterfaceName() string
- func (s *UnimplementedCustomerServiceServer) XXX_ServiceDesc() *grpc_go.ServiceDesc
- func (s *UnimplementedCustomerServiceServer) XXX_SetProxyImpl(impl protocol.Invoker)
- type UnsafeCustomerServiceServer
Constants ¶
This section is empty.
Variables ¶
var CustomerService_ServiceDesc = grpc_go.ServiceDesc{ ServiceName: "com.jeongen.fastmall.customer.CustomerService", HandlerType: (*CustomerServiceServer)(nil), Methods: []grpc_go.MethodDesc{ { MethodName: "CreateCustomer", Handler: _CustomerService_CreateCustomer_Handler, }, }, Streams: []grpc_go.StreamDesc{}, Metadata: "customer.proto", }
CustomerService_ServiceDesc is the grpc_go.ServiceDesc for CustomerService service. It's only intended for direct use with grpc_go.RegisterService, and not to be introspected or modified (even as a copy)
var File_customer_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCustomerServiceServer ¶
func RegisterCustomerServiceServer(s grpc_go.ServiceRegistrar, srv CustomerServiceServer)
Types ¶
type CreateCustomerRequest ¶
type CreateCustomerRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*CreateCustomerRequest) Descriptor
deprecated
func (*CreateCustomerRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateCustomerRequest.ProtoReflect.Descriptor instead.
func (*CreateCustomerRequest) GetPassword ¶
func (x *CreateCustomerRequest) GetPassword() string
func (*CreateCustomerRequest) GetUsername ¶
func (x *CreateCustomerRequest) GetUsername() string
func (*CreateCustomerRequest) ProtoMessage ¶
func (*CreateCustomerRequest) ProtoMessage()
func (*CreateCustomerRequest) ProtoReflect ¶
func (x *CreateCustomerRequest) ProtoReflect() protoreflect.Message
func (*CreateCustomerRequest) Reset ¶
func (x *CreateCustomerRequest) Reset()
func (*CreateCustomerRequest) String ¶
func (x *CreateCustomerRequest) String() string
type CreateCustomerResponse ¶
type CreateCustomerResponse struct { UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"` // contains filtered or unexported fields }
func (*CreateCustomerResponse) Descriptor
deprecated
func (*CreateCustomerResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateCustomerResponse.ProtoReflect.Descriptor instead.
func (*CreateCustomerResponse) GetUserId ¶
func (x *CreateCustomerResponse) GetUserId() int64
func (*CreateCustomerResponse) ProtoMessage ¶
func (*CreateCustomerResponse) ProtoMessage()
func (*CreateCustomerResponse) ProtoReflect ¶
func (x *CreateCustomerResponse) ProtoReflect() protoreflect.Message
func (*CreateCustomerResponse) Reset ¶
func (x *CreateCustomerResponse) Reset()
func (*CreateCustomerResponse) String ¶
func (x *CreateCustomerResponse) String() string
type CustomerServiceClient ¶
type CustomerServiceClient interface {
CreateCustomer(ctx context.Context, in *CreateCustomerRequest, opts ...grpc_go.CallOption) (*CreateCustomerResponse, common.ErrorWithAttachment)
}
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 *triple.TripleConn) CustomerServiceClient
type CustomerServiceClientImpl ¶
type CustomerServiceClientImpl struct {
CreateCustomer func(ctx context.Context, in *CreateCustomerRequest) (*CreateCustomerResponse, error)
}
func (*CustomerServiceClientImpl) GetDubboStub ¶
func (c *CustomerServiceClientImpl) GetDubboStub(cc *triple.TripleConn) CustomerServiceClient
func (*CustomerServiceClientImpl) XXX_InterfaceName ¶
func (c *CustomerServiceClientImpl) XXX_InterfaceName() string
type CustomerServiceServer ¶
type CustomerServiceServer interface { CreateCustomer(context.Context, *CreateCustomerRequest) (*CreateCustomerResponse, error) // contains filtered or unexported methods }
CustomerServiceServer is the server API for CustomerService service. All implementations must embed UnimplementedCustomerServiceServer for forward compatibility
type UnimplementedCustomerServiceServer ¶
type UnimplementedCustomerServiceServer struct {
// contains filtered or unexported fields
}
UnimplementedCustomerServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedCustomerServiceServer) CreateCustomer ¶
func (UnimplementedCustomerServiceServer) CreateCustomer(context.Context, *CreateCustomerRequest) (*CreateCustomerResponse, error)
func (*UnimplementedCustomerServiceServer) XXX_GetProxyImpl ¶
func (s *UnimplementedCustomerServiceServer) XXX_GetProxyImpl() protocol.Invoker
func (*UnimplementedCustomerServiceServer) XXX_InterfaceName ¶
func (s *UnimplementedCustomerServiceServer) XXX_InterfaceName() string
func (*UnimplementedCustomerServiceServer) XXX_ServiceDesc ¶
func (s *UnimplementedCustomerServiceServer) XXX_ServiceDesc() *grpc_go.ServiceDesc
func (*UnimplementedCustomerServiceServer) XXX_SetProxyImpl ¶
func (s *UnimplementedCustomerServiceServer) XXX_SetProxyImpl(impl protocol.Invoker)
type UnsafeCustomerServiceServer ¶
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.