user

package
v0.0.0-...-6346009 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pb_user_job_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use CReq.ProtoReflect.Descriptor instead.

func (*CReq) GetUserId

func (x *CReq) GetUserId() int64

func (*CReq) ProtoMessage

func (*CReq) ProtoMessage()

func (*CReq) ProtoReflect

func (x *CReq) ProtoReflect() protoreflect.Message

func (*CReq) Reset

func (x *CReq) Reset()

func (*CReq) String

func (x *CReq) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use CRes.ProtoReflect.Descriptor instead.

func (*CRes) GetError

func (x *CRes) GetError() string

func (*CRes) GetExist

func (x *CRes) GetExist() bool

func (*CRes) GetStatus

func (x *CRes) GetStatus() int32

func (*CRes) ProtoMessage

func (*CRes) ProtoMessage()

func (*CRes) ProtoReflect

func (x *CRes) ProtoReflect() protoreflect.Message

func (*CRes) Reset

func (x *CRes) Reset()

func (*CRes) String

func (x *CRes) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Preq.ProtoReflect.Descriptor instead.

func (*Preq) GetUserID

func (x *Preq) GetUserID() int32

func (*Preq) ProtoMessage

func (*Preq) ProtoMessage()

func (*Preq) ProtoReflect

func (x *Preq) ProtoReflect() protoreflect.Message

func (*Preq) Reset

func (x *Preq) Reset()

func (*Preq) String

func (x *Preq) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Pres.ProtoReflect.Descriptor instead.

func (*Pres) GetEmail

func (x *Pres) GetEmail() string

func (*Pres) GetError

func (x *Pres) GetError() string

func (*Pres) GetStatus

func (x *Pres) GetStatus() int32

func (*Pres) ProtoMessage

func (*Pres) ProtoMessage()

func (*Pres) ProtoReflect

func (x *Pres) ProtoReflect() protoreflect.Message

func (*Pres) Reset

func (x *Pres) Reset()

func (*Pres) String

func (x *Pres) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Req.ProtoReflect.Descriptor instead.

func (*Req) GetSkill

func (x *Req) GetSkill() []int64

func (*Req) ProtoMessage

func (*Req) ProtoMessage()

func (*Req) ProtoReflect

func (x *Req) ProtoReflect() protoreflect.Message

func (*Req) Reset

func (x *Req) Reset()

func (*Req) String

func (x *Req) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Res.ProtoReflect.Descriptor instead.

func (*Res) GetSkill

func (x *Res) GetSkill() []string

func (*Res) ProtoMessage

func (*Res) ProtoMessage()

func (*Res) ProtoReflect

func (x *Res) ProtoReflect() protoreflect.Message

func (*Res) Reset

func (x *Res) Reset()

func (*Res) String

func (x *Res) String() string

type UnimplementedJobserviceServer

type UnimplementedJobserviceServer struct {
}

UnimplementedJobserviceServer must be embedded to have forward compatible implementations.

func (UnimplementedJobserviceServer) CheckPaypalEmailAdded

func (UnimplementedJobserviceServer) CheckPaypalEmailAdded(context.Context, *CReq) (*CRes, error)

func (UnimplementedJobserviceServer) GetFreelancerPaypalEmail

func (UnimplementedJobserviceServer) GetFreelancerPaypalEmail(context.Context, *Preq) (*Pres, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL