Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_pb_user_user_proto protoreflect.FileDescriptor
var UserService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "user.UserService", HandlerType: (*UserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetFreelancerPaypalEmails", Handler: _UserService_GetFreelancerPaypalEmails_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pb/user/user.proto", }
UserService_ServiceDesc is the grpc.ServiceDesc for UserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
Types ¶
type Preq ¶
type Preq struct { UserID int32 `protobuf:"varint,1,opt,name=userID,proto3" json:"userID,omitempty"` // contains filtered or unexported fields }
func (*Preq) Descriptor
deprecated
func (*Preq) ProtoMessage ¶
func (*Preq) ProtoMessage()
func (*Preq) ProtoReflect ¶
func (x *Preq) ProtoReflect() protoreflect.Message
type Pres ¶
type Pres struct { Email string `protobuf:"bytes,1,opt,name=Email,proto3" json:"Email,omitempty"` Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` Error string `protobuf:"bytes,3,opt,name=Error,proto3" json:"Error,omitempty"` // contains filtered or unexported fields }
func (*Pres) Descriptor
deprecated
func (*Pres) ProtoMessage ¶
func (*Pres) ProtoMessage()
func (*Pres) ProtoReflect ¶
func (x *Pres) ProtoReflect() protoreflect.Message
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServiceServer) GetFreelancerPaypalEmails ¶
type UnsafeUserServiceServer ¶
type UnsafeUserServiceServer interface {
// contains filtered or unexported methods
}
UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServiceServer will result in compilation errors.
type UserServiceClient ¶
type UserServiceClient interface {
GetFreelancerPaypalEmails(ctx context.Context, in *Preq, opts ...grpc.CallOption) (*Pres, error)
}
UserServiceClient is the client API for UserService 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 NewUserServiceClient ¶
func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient
type UserServiceServer ¶
type UserServiceServer interface { GetFreelancerPaypalEmails(context.Context, *Preq) (*Pres, error) // contains filtered or unexported methods }
UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility