Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_pb_user_job_proto protoreflect.FileDescriptor
var Jobservice_ServiceDesc = grpc.ServiceDesc{ ServiceName: "job.Jobservice", HandlerType: (*JobserviceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetJobsSkills", Handler: _Jobservice_GetJobsSkills_Handler, }, { MethodName: "GetFreelancerPaypalEmail", Handler: _Jobservice_GetFreelancerPaypalEmail_Handler, }, { MethodName: "CheckPaypalEmailAdded", Handler: _Jobservice_CheckPaypalEmailAdded_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pb/user/job.proto", }
Jobservice_ServiceDesc is the grpc.ServiceDesc for Jobservice service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterJobserviceServer ¶
func RegisterJobserviceServer(s grpc.ServiceRegistrar, srv JobserviceServer)
Types ¶
type CReq ¶
type CReq struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*CReq) Descriptor
deprecated
func (*CReq) ProtoMessage ¶
func (*CReq) ProtoMessage()
func (*CReq) ProtoReflect ¶
func (x *CReq) ProtoReflect() protoreflect.Message
type CRes ¶
type CRes struct { Status int32 `protobuf:"varint,1,opt,name=Status,proto3" json:"Status,omitempty"` Error string `protobuf:"bytes,2,opt,name=Error,proto3" json:"Error,omitempty"` Exist bool `protobuf:"varint,3,opt,name=Exist,proto3" json:"Exist,omitempty"` // contains filtered or unexported fields }
func (*CRes) Descriptor
deprecated
func (*CRes) ProtoMessage ¶
func (*CRes) ProtoMessage()
func (*CRes) ProtoReflect ¶
func (x *CRes) ProtoReflect() protoreflect.Message
type JobserviceClient ¶
type JobserviceClient interface { GetJobsSkills(ctx context.Context, in *Req, opts ...grpc.CallOption) (*Res, error) GetFreelancerPaypalEmail(ctx context.Context, in *Preq, opts ...grpc.CallOption) (*Pres, error) CheckPaypalEmailAdded(ctx context.Context, in *CReq, opts ...grpc.CallOption) (*CRes, error) }
JobserviceClient is the client API for Jobservice 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 NewJobserviceClient ¶
func NewJobserviceClient(cc grpc.ClientConnInterface) JobserviceClient
type JobserviceServer ¶
type JobserviceServer interface { GetJobsSkills(context.Context, *Req) (*Res, error) GetFreelancerPaypalEmail(context.Context, *Preq) (*Pres, error) CheckPaypalEmailAdded(context.Context, *CReq) (*CRes, error) // contains filtered or unexported methods }
JobserviceServer is the server API for Jobservice service. All implementations must embed UnimplementedJobserviceServer for forward compatibility
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 Req ¶
type Req struct { Skill []int64 `protobuf:"varint,1,rep,packed,name=skill,proto3" json:"skill,omitempty"` // contains filtered or unexported fields }
func (*Req) Descriptor
deprecated
func (*Req) ProtoMessage ¶
func (*Req) ProtoMessage()
func (*Req) ProtoReflect ¶
func (x *Req) ProtoReflect() protoreflect.Message
type Res ¶
type Res struct { Skill []string `protobuf:"bytes,1,rep,name=skill,proto3" json:"skill,omitempty"` // contains filtered or unexported fields }
func (*Res) Descriptor
deprecated
func (*Res) ProtoMessage ¶
func (*Res) ProtoMessage()
func (*Res) ProtoReflect ¶
func (x *Res) ProtoReflect() protoreflect.Message
type UnimplementedJobserviceServer ¶
type UnimplementedJobserviceServer struct { }
UnimplementedJobserviceServer must be embedded to have forward compatible implementations.
func (UnimplementedJobserviceServer) CheckPaypalEmailAdded ¶
func (UnimplementedJobserviceServer) GetFreelancerPaypalEmail ¶
func (UnimplementedJobserviceServer) GetJobsSkills ¶
type UnsafeJobserviceServer ¶
type UnsafeJobserviceServer interface {
// contains filtered or unexported methods
}
UnsafeJobserviceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to JobserviceServer will result in compilation errors.