job_grpc

package
v0.0.0-...-945c817 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterJobHandlerServer

func RegisterJobHandlerServer(s *grpc.Server, srv JobHandlerServer)

Types

type Job

type Job struct {
	ID                   int64                `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	HireManagerId        int64                `protobuf:"varint,2,opt,name=HireManagerId,proto3" json:"HireManagerId,omitempty"`
	Title                string               `protobuf:"bytes,3,opt,name=Title,proto3" json:"Title,omitempty"`
	Description          string               `protobuf:"bytes,4,opt,name=Description,proto3" json:"Description,omitempty"`
	Files                string               `protobuf:"bytes,5,opt,name=Files,proto3" json:"Files,omitempty"`
	SpecialityId         int64                `protobuf:"varint,6,opt,name=SpecialityId,proto3" json:"SpecialityId,omitempty"`
	ExperienceLevelId    int64                `protobuf:"varint,7,opt,name=ExperienceLevelId,proto3" json:"ExperienceLevelId,omitempty"`
	PaymentAmount        float32              `protobuf:"fixed32,8,opt,name=PaymentAmount,proto3" json:"PaymentAmount,omitempty"`
	Country              int64                `protobuf:"varint,9,opt,name=Country,proto3" json:"Country,omitempty"`
	City                 int64                `protobuf:"varint,10,opt,name=City,proto3" json:"City,omitempty"`
	JobTypeId            int64                `protobuf:"varint,11,opt,name=JobTypeId,proto3" json:"JobTypeId,omitempty"`
	Date                 *timestamp.Timestamp `protobuf:"bytes,12,opt,name=Date,proto3" json:"Date,omitempty"`
	Status               string               `protobuf:"bytes,13,opt,name=Status,proto3" json:"Status,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*Job) Descriptor

func (*Job) Descriptor() ([]byte, []int)

func (*Job) GetCity

func (m *Job) GetCity() int64

func (*Job) GetCountry

func (m *Job) GetCountry() int64

func (*Job) GetDate

func (m *Job) GetDate() *timestamp.Timestamp

func (*Job) GetDescription

func (m *Job) GetDescription() string

func (*Job) GetExperienceLevelId

func (m *Job) GetExperienceLevelId() int64

func (*Job) GetFiles

func (m *Job) GetFiles() string

func (*Job) GetHireManagerId

func (m *Job) GetHireManagerId() int64

func (*Job) GetID

func (m *Job) GetID() int64

func (*Job) GetJobTypeId

func (m *Job) GetJobTypeId() int64

func (*Job) GetPaymentAmount

func (m *Job) GetPaymentAmount() float32

func (*Job) GetSpecialityId

func (m *Job) GetSpecialityId() int64

func (*Job) GetStatus

func (m *Job) GetStatus() string

func (*Job) GetTitle

func (m *Job) GetTitle() string

func (*Job) ProtoMessage

func (*Job) ProtoMessage()

func (*Job) Reset

func (m *Job) Reset()

func (*Job) String

func (m *Job) String() string

func (*Job) XXX_DiscardUnknown

func (m *Job) XXX_DiscardUnknown()

func (*Job) XXX_Marshal

func (m *Job) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Job) XXX_Merge

func (m *Job) XXX_Merge(src proto.Message)

func (*Job) XXX_Size

func (m *Job) XXX_Size() int

func (*Job) XXX_Unmarshal

func (m *Job) XXX_Unmarshal(b []byte) error

type JobHandlerClient

type JobHandlerClient interface {
	Find(ctx context.Context, in *JobID, opts ...grpc.CallOption) (*Job, error)
	GetUserIDFromJobID(ctx context.Context, in *JobID, opts ...grpc.CallOption) (*UserID, error)
	GetTags(ctx context.Context, in *Nothing, opts ...grpc.CallOption) (*Jobs, error)
}

JobHandlerClient is the client API for JobHandler service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewJobHandlerClient

func NewJobHandlerClient(cc *grpc.ClientConn) JobHandlerClient

type JobHandlerServer

type JobHandlerServer interface {
	Find(context.Context, *JobID) (*Job, error)
	GetUserIDFromJobID(context.Context, *JobID) (*UserID, error)
	GetTags(context.Context, *Nothing) (*Jobs, error)
}

JobHandlerServer is the server API for JobHandler service.

type JobID

type JobID struct {
	ID                   int64    `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*JobID) Descriptor

func (*JobID) Descriptor() ([]byte, []int)

func (*JobID) GetID

func (m *JobID) GetID() int64

func (*JobID) ProtoMessage

func (*JobID) ProtoMessage()

func (*JobID) Reset

func (m *JobID) Reset()

func (*JobID) String

func (m *JobID) String() string

func (*JobID) XXX_DiscardUnknown

func (m *JobID) XXX_DiscardUnknown()

func (*JobID) XXX_Marshal

func (m *JobID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*JobID) XXX_Merge

func (m *JobID) XXX_Merge(src proto.Message)

func (*JobID) XXX_Size

func (m *JobID) XXX_Size() int

func (*JobID) XXX_Unmarshal

func (m *JobID) XXX_Unmarshal(b []byte) error

type Jobs

type Jobs struct {
	Tags                 []string `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Jobs) Descriptor

func (*Jobs) Descriptor() ([]byte, []int)

func (*Jobs) GetTags

func (m *Jobs) GetTags() []string

func (*Jobs) ProtoMessage

func (*Jobs) ProtoMessage()

func (*Jobs) Reset

func (m *Jobs) Reset()

func (*Jobs) String

func (m *Jobs) String() string

func (*Jobs) XXX_DiscardUnknown

func (m *Jobs) XXX_DiscardUnknown()

func (*Jobs) XXX_Marshal

func (m *Jobs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Jobs) XXX_Merge

func (m *Jobs) XXX_Merge(src proto.Message)

func (*Jobs) XXX_Size

func (m *Jobs) XXX_Size() int

func (*Jobs) XXX_Unmarshal

func (m *Jobs) XXX_Unmarshal(b []byte) error

type Nothing

type Nothing struct {
	Dummy                bool     `protobuf:"varint,1,opt,name=dummy,proto3" json:"dummy,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Nothing) Descriptor

func (*Nothing) Descriptor() ([]byte, []int)

func (*Nothing) GetDummy

func (m *Nothing) GetDummy() bool

func (*Nothing) ProtoMessage

func (*Nothing) ProtoMessage()

func (*Nothing) Reset

func (m *Nothing) Reset()

func (*Nothing) String

func (m *Nothing) String() string

func (*Nothing) XXX_DiscardUnknown

func (m *Nothing) XXX_DiscardUnknown()

func (*Nothing) XXX_Marshal

func (m *Nothing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Nothing) XXX_Merge

func (m *Nothing) XXX_Merge(src proto.Message)

func (*Nothing) XXX_Size

func (m *Nothing) XXX_Size() int

func (*Nothing) XXX_Unmarshal

func (m *Nothing) XXX_Unmarshal(b []byte) error

type UnimplementedJobHandlerServer

type UnimplementedJobHandlerServer struct {
}

UnimplementedJobHandlerServer can be embedded to have forward compatible implementations.

func (*UnimplementedJobHandlerServer) Find

func (*UnimplementedJobHandlerServer) GetTags

func (*UnimplementedJobHandlerServer) GetUserIDFromJobID

func (*UnimplementedJobHandlerServer) GetUserIDFromJobID(ctx context.Context, req *JobID) (*UserID, error)

type UserID

type UserID struct {
	ID                   int64    `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UserID) Descriptor

func (*UserID) Descriptor() ([]byte, []int)

func (*UserID) GetID

func (m *UserID) GetID() int64

func (*UserID) ProtoMessage

func (*UserID) ProtoMessage()

func (*UserID) Reset

func (m *UserID) Reset()

func (*UserID) String

func (m *UserID) String() string

func (*UserID) XXX_DiscardUnknown

func (m *UserID) XXX_DiscardUnknown()

func (*UserID) XXX_Marshal

func (m *UserID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UserID) XXX_Merge

func (m *UserID) XXX_Merge(src proto.Message)

func (*UserID) XXX_Size

func (m *UserID) XXX_Size() int

func (*UserID) XXX_Unmarshal

func (m *UserID) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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