job

package
v0.0.0-...-d36d6b6 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2025 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Job_ListJob_FullMethodName   = "/manager.api.job.Job/ListJob"
	Job_CreateJob_FullMethodName = "/manager.api.job.Job/CreateJob"
	Job_UpdateJob_FullMethodName = "/manager.api.job.Job/UpdateJob"
	Job_DeleteJob_FullMethodName = "/manager.api.job.Job/DeleteJob"
)
View Source
const (
	OperationJobCreateJob = "/manager.api.job.Job/CreateJob"
	OperationJobDeleteJob = "/manager.api.job.Job/DeleteJob"
	OperationJobListJob   = "/manager.api.job.Job/ListJob"
	OperationJobUpdateJob = "/manager.api.job.Job/UpdateJob"
)

Variables

View Source
var File_api_job_proto_job_proto protoreflect.FileDescriptor
View Source
var File_api_job_proto_job_service_proto protoreflect.FileDescriptor
View Source
var Job_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "manager.api.job.Job",
	HandlerType: (*JobServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListJob",
			Handler:    _Job_ListJob_Handler,
		},
		{
			MethodName: "CreateJob",
			Handler:    _Job_CreateJob_Handler,
		},
		{
			MethodName: "UpdateJob",
			Handler:    _Job_UpdateJob_Handler,
		},
		{
			MethodName: "DeleteJob",
			Handler:    _Job_DeleteJob_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/job/proto/job_service.proto",
}

Job_ServiceDesc is the grpc.ServiceDesc for Job service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterJobHTTPServer

func RegisterJobHTTPServer(s *http.Server, srv JobHTTPServer)

func RegisterJobServer

func RegisterJobServer(s grpc.ServiceRegistrar, srv JobServer)

Types

type CreateJobReply

type CreateJobReply struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateJobReply) Descriptor deprecated

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

Deprecated: Use CreateJobReply.ProtoReflect.Descriptor instead.

func (*CreateJobReply) GetId

func (x *CreateJobReply) GetId() uint32

func (*CreateJobReply) ProtoMessage

func (*CreateJobReply) ProtoMessage()

func (*CreateJobReply) ProtoReflect

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

func (*CreateJobReply) Reset

func (x *CreateJobReply) Reset()

func (*CreateJobReply) String

func (x *CreateJobReply) String() string

func (*CreateJobReply) Validate

func (m *CreateJobReply) Validate() error

Validate checks the field values on CreateJobReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateJobReply) ValidateAll

func (m *CreateJobReply) ValidateAll() error

ValidateAll checks the field values on CreateJobReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateJobReplyMultiError, or nil if none found.

type CreateJobReplyMultiError

type CreateJobReplyMultiError []error

CreateJobReplyMultiError is an error wrapping multiple validation errors returned by CreateJobReply.ValidateAll() if the designated constraints aren't met.

func (CreateJobReplyMultiError) AllErrors

func (m CreateJobReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateJobReplyMultiError) Error

func (m CreateJobReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type CreateJobReplyValidationError

type CreateJobReplyValidationError struct {
	// contains filtered or unexported fields
}

CreateJobReplyValidationError is the validation error returned by CreateJobReply.Validate if the designated constraints aren't met.

func (CreateJobReplyValidationError) Cause

Cause function returns cause value.

func (CreateJobReplyValidationError) Error

Error satisfies the builtin error interface

func (CreateJobReplyValidationError) ErrorName

func (e CreateJobReplyValidationError) ErrorName() string

ErrorName returns error name.

func (CreateJobReplyValidationError) Field

Field function returns field value.

func (CreateJobReplyValidationError) Key

Key function returns key value.

func (CreateJobReplyValidationError) Reason

Reason function returns reason value.

type CreateJobRequest

type CreateJobRequest struct {
	Name        string  `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Keyword     string  `protobuf:"bytes,2,opt,name=keyword,proto3" json:"keyword,omitempty"`
	Description *string `protobuf:"bytes,3,opt,name=description,proto3,oneof" json:"description,omitempty"`
	Weight      uint32  `protobuf:"varint,4,opt,name=weight,proto3" json:"weight,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateJobRequest) Descriptor deprecated

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

Deprecated: Use CreateJobRequest.ProtoReflect.Descriptor instead.

func (*CreateJobRequest) GetDescription

func (x *CreateJobRequest) GetDescription() string

func (*CreateJobRequest) GetKeyword

func (x *CreateJobRequest) GetKeyword() string

func (*CreateJobRequest) GetName

func (x *CreateJobRequest) GetName() string

func (*CreateJobRequest) GetWeight

func (x *CreateJobRequest) GetWeight() uint32

func (*CreateJobRequest) ProtoMessage

func (*CreateJobRequest) ProtoMessage()

func (*CreateJobRequest) ProtoReflect

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

func (*CreateJobRequest) Reset

func (x *CreateJobRequest) Reset()

func (*CreateJobRequest) String

func (x *CreateJobRequest) String() string

func (*CreateJobRequest) Validate

func (m *CreateJobRequest) Validate() error

Validate checks the field values on CreateJobRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateJobRequest) ValidateAll

func (m *CreateJobRequest) ValidateAll() error

ValidateAll checks the field values on CreateJobRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateJobRequestMultiError, or nil if none found.

type CreateJobRequestMultiError

type CreateJobRequestMultiError []error

CreateJobRequestMultiError is an error wrapping multiple validation errors returned by CreateJobRequest.ValidateAll() if the designated constraints aren't met.

func (CreateJobRequestMultiError) AllErrors

func (m CreateJobRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateJobRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateJobRequestValidationError

type CreateJobRequestValidationError struct {
	// contains filtered or unexported fields
}

CreateJobRequestValidationError is the validation error returned by CreateJobRequest.Validate if the designated constraints aren't met.

func (CreateJobRequestValidationError) Cause

Cause function returns cause value.

func (CreateJobRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateJobRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateJobRequestValidationError) Field

Field function returns field value.

func (CreateJobRequestValidationError) Key

Key function returns key value.

func (CreateJobRequestValidationError) Reason

Reason function returns reason value.

type DeleteJobReply

type DeleteJobReply struct {
	// contains filtered or unexported fields
}

func (*DeleteJobReply) Descriptor deprecated

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

Deprecated: Use DeleteJobReply.ProtoReflect.Descriptor instead.

func (*DeleteJobReply) ProtoMessage

func (*DeleteJobReply) ProtoMessage()

func (*DeleteJobReply) ProtoReflect

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

func (*DeleteJobReply) Reset

func (x *DeleteJobReply) Reset()

func (*DeleteJobReply) String

func (x *DeleteJobReply) String() string

func (*DeleteJobReply) Validate

func (m *DeleteJobReply) Validate() error

Validate checks the field values on DeleteJobReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteJobReply) ValidateAll

func (m *DeleteJobReply) ValidateAll() error

ValidateAll checks the field values on DeleteJobReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteJobReplyMultiError, or nil if none found.

type DeleteJobReplyMultiError

type DeleteJobReplyMultiError []error

DeleteJobReplyMultiError is an error wrapping multiple validation errors returned by DeleteJobReply.ValidateAll() if the designated constraints aren't met.

func (DeleteJobReplyMultiError) AllErrors

func (m DeleteJobReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteJobReplyMultiError) Error

func (m DeleteJobReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type DeleteJobReplyValidationError

type DeleteJobReplyValidationError struct {
	// contains filtered or unexported fields
}

DeleteJobReplyValidationError is the validation error returned by DeleteJobReply.Validate if the designated constraints aren't met.

func (DeleteJobReplyValidationError) Cause

Cause function returns cause value.

func (DeleteJobReplyValidationError) Error

Error satisfies the builtin error interface

func (DeleteJobReplyValidationError) ErrorName

func (e DeleteJobReplyValidationError) ErrorName() string

ErrorName returns error name.

func (DeleteJobReplyValidationError) Field

Field function returns field value.

func (DeleteJobReplyValidationError) Key

Key function returns key value.

func (DeleteJobReplyValidationError) Reason

Reason function returns reason value.

type DeleteJobRequest

type DeleteJobRequest struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteJobRequest) Descriptor deprecated

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

Deprecated: Use DeleteJobRequest.ProtoReflect.Descriptor instead.

func (*DeleteJobRequest) GetId

func (x *DeleteJobRequest) GetId() uint32

func (*DeleteJobRequest) ProtoMessage

func (*DeleteJobRequest) ProtoMessage()

func (*DeleteJobRequest) ProtoReflect

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

func (*DeleteJobRequest) Reset

func (x *DeleteJobRequest) Reset()

func (*DeleteJobRequest) String

func (x *DeleteJobRequest) String() string

func (*DeleteJobRequest) Validate

func (m *DeleteJobRequest) Validate() error

Validate checks the field values on DeleteJobRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteJobRequest) ValidateAll

func (m *DeleteJobRequest) ValidateAll() error

ValidateAll checks the field values on DeleteJobRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteJobRequestMultiError, or nil if none found.

type DeleteJobRequestMultiError

type DeleteJobRequestMultiError []error

DeleteJobRequestMultiError is an error wrapping multiple validation errors returned by DeleteJobRequest.ValidateAll() if the designated constraints aren't met.

func (DeleteJobRequestMultiError) AllErrors

func (m DeleteJobRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteJobRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteJobRequestValidationError

type DeleteJobRequestValidationError struct {
	// contains filtered or unexported fields
}

DeleteJobRequestValidationError is the validation error returned by DeleteJobRequest.Validate if the designated constraints aren't met.

func (DeleteJobRequestValidationError) Cause

Cause function returns cause value.

func (DeleteJobRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteJobRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteJobRequestValidationError) Field

Field function returns field value.

func (DeleteJobRequestValidationError) Key

Key function returns key value.

func (DeleteJobRequestValidationError) Reason

Reason function returns reason value.

type JobClient

type JobClient interface {
	// ListJob 获取部门列表
	ListJob(ctx context.Context, in *ListJobRequest, opts ...grpc.CallOption) (*ListJobReply, error)
	// CreateJob 创建部门
	CreateJob(ctx context.Context, in *CreateJobRequest, opts ...grpc.CallOption) (*CreateJobReply, error)
	// UpdateJob 更新部门
	UpdateJob(ctx context.Context, in *UpdateJobRequest, opts ...grpc.CallOption) (*UpdateJobReply, error)
	// DeleteJob 删除部门
	DeleteJob(ctx context.Context, in *DeleteJobRequest, opts ...grpc.CallOption) (*DeleteJobReply, error)
}

JobClient is the client API for Job 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 NewJobClient

func NewJobClient(cc grpc.ClientConnInterface) JobClient

type JobHTTPClient

type JobHTTPClient interface {
	CreateJob(ctx context.Context, req *CreateJobRequest, opts ...http.CallOption) (rsp *CreateJobReply, err error)
	DeleteJob(ctx context.Context, req *DeleteJobRequest, opts ...http.CallOption) (rsp *DeleteJobReply, err error)
	ListJob(ctx context.Context, req *ListJobRequest, opts ...http.CallOption) (rsp *ListJobReply, err error)
	UpdateJob(ctx context.Context, req *UpdateJobRequest, opts ...http.CallOption) (rsp *UpdateJobReply, err error)
}

func NewJobHTTPClient

func NewJobHTTPClient(client *http.Client) JobHTTPClient

type JobHTTPClientImpl

type JobHTTPClientImpl struct {
	// contains filtered or unexported fields
}

func (*JobHTTPClientImpl) CreateJob

func (*JobHTTPClientImpl) DeleteJob

func (*JobHTTPClientImpl) ListJob

func (*JobHTTPClientImpl) UpdateJob

type JobHTTPServer

type JobHTTPServer interface {
	// CreateJob CreateJob 创建部门
	CreateJob(context.Context, *CreateJobRequest) (*CreateJobReply, error)
	// DeleteJob DeleteJob 删除部门
	DeleteJob(context.Context, *DeleteJobRequest) (*DeleteJobReply, error)
	// ListJob ListJob 获取部门列表
	ListJob(context.Context, *ListJobRequest) (*ListJobReply, error)
	// UpdateJob UpdateJob 更新部门
	UpdateJob(context.Context, *UpdateJobRequest) (*UpdateJobReply, error)
}

type JobServer

type JobServer interface {
	// ListJob 获取部门列表
	ListJob(context.Context, *ListJobRequest) (*ListJobReply, error)
	// CreateJob 创建部门
	CreateJob(context.Context, *CreateJobRequest) (*CreateJobReply, error)
	// UpdateJob 更新部门
	UpdateJob(context.Context, *UpdateJobRequest) (*UpdateJobReply, error)
	// DeleteJob 删除部门
	DeleteJob(context.Context, *DeleteJobRequest) (*DeleteJobReply, error)
	// contains filtered or unexported methods
}

JobServer is the server API for Job service. All implementations must embed UnimplementedJobServer for forward compatibility

type ListJobReply

type ListJobReply struct {
	Total uint32              `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	List  []*ListJobReply_Job `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*ListJobReply) Descriptor deprecated

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

Deprecated: Use ListJobReply.ProtoReflect.Descriptor instead.

func (*ListJobReply) GetList

func (x *ListJobReply) GetList() []*ListJobReply_Job

func (*ListJobReply) GetTotal

func (x *ListJobReply) GetTotal() uint32

func (*ListJobReply) ProtoMessage

func (*ListJobReply) ProtoMessage()

func (*ListJobReply) ProtoReflect

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

func (*ListJobReply) Reset

func (x *ListJobReply) Reset()

func (*ListJobReply) String

func (x *ListJobReply) String() string

func (*ListJobReply) Validate

func (m *ListJobReply) Validate() error

Validate checks the field values on ListJobReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListJobReply) ValidateAll

func (m *ListJobReply) ValidateAll() error

ValidateAll checks the field values on ListJobReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListJobReplyMultiError, or nil if none found.

type ListJobReplyMultiError

type ListJobReplyMultiError []error

ListJobReplyMultiError is an error wrapping multiple validation errors returned by ListJobReply.ValidateAll() if the designated constraints aren't met.

func (ListJobReplyMultiError) AllErrors

func (m ListJobReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListJobReplyMultiError) Error

func (m ListJobReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ListJobReplyValidationError

type ListJobReplyValidationError struct {
	// contains filtered or unexported fields
}

ListJobReplyValidationError is the validation error returned by ListJobReply.Validate if the designated constraints aren't met.

func (ListJobReplyValidationError) Cause

Cause function returns cause value.

func (ListJobReplyValidationError) Error

Error satisfies the builtin error interface

func (ListJobReplyValidationError) ErrorName

func (e ListJobReplyValidationError) ErrorName() string

ErrorName returns error name.

func (ListJobReplyValidationError) Field

Field function returns field value.

func (ListJobReplyValidationError) Key

Key function returns key value.

func (ListJobReplyValidationError) Reason

Reason function returns reason value.

type ListJobReply_Job

type ListJobReply_Job struct {
	Id          uint32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        string  `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Keyword     string  `protobuf:"bytes,3,opt,name=keyword,proto3" json:"keyword,omitempty"`
	Description *string `protobuf:"bytes,4,opt,name=description,proto3,oneof" json:"description,omitempty"`
	Status      *bool   `protobuf:"varint,5,opt,name=status,proto3,oneof" json:"status,omitempty"`
	Weight      uint32  `protobuf:"varint,6,opt,name=weight,proto3" json:"weight,omitempty"`
	CreatedAt   uint32  `protobuf:"varint,7,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	UpdatedAt   uint32  `protobuf:"varint,8,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
	// contains filtered or unexported fields
}

func (*ListJobReply_Job) Descriptor deprecated

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

Deprecated: Use ListJobReply_Job.ProtoReflect.Descriptor instead.

func (*ListJobReply_Job) GetCreatedAt

func (x *ListJobReply_Job) GetCreatedAt() uint32

func (*ListJobReply_Job) GetDescription

func (x *ListJobReply_Job) GetDescription() string

func (*ListJobReply_Job) GetId

func (x *ListJobReply_Job) GetId() uint32

func (*ListJobReply_Job) GetKeyword

func (x *ListJobReply_Job) GetKeyword() string

func (*ListJobReply_Job) GetName

func (x *ListJobReply_Job) GetName() string

func (*ListJobReply_Job) GetStatus

func (x *ListJobReply_Job) GetStatus() bool

func (*ListJobReply_Job) GetUpdatedAt

func (x *ListJobReply_Job) GetUpdatedAt() uint32

func (*ListJobReply_Job) GetWeight

func (x *ListJobReply_Job) GetWeight() uint32

func (*ListJobReply_Job) ProtoMessage

func (*ListJobReply_Job) ProtoMessage()

func (*ListJobReply_Job) ProtoReflect

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

func (*ListJobReply_Job) Reset

func (x *ListJobReply_Job) Reset()

func (*ListJobReply_Job) String

func (x *ListJobReply_Job) String() string

func (*ListJobReply_Job) Validate

func (m *ListJobReply_Job) Validate() error

Validate checks the field values on ListJobReply_Job with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListJobReply_Job) ValidateAll

func (m *ListJobReply_Job) ValidateAll() error

ValidateAll checks the field values on ListJobReply_Job with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListJobReply_JobMultiError, or nil if none found.

type ListJobReply_JobMultiError

type ListJobReply_JobMultiError []error

ListJobReply_JobMultiError is an error wrapping multiple validation errors returned by ListJobReply_Job.ValidateAll() if the designated constraints aren't met.

func (ListJobReply_JobMultiError) AllErrors

func (m ListJobReply_JobMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListJobReply_JobMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListJobReply_JobValidationError

type ListJobReply_JobValidationError struct {
	// contains filtered or unexported fields
}

ListJobReply_JobValidationError is the validation error returned by ListJobReply_Job.Validate if the designated constraints aren't met.

func (ListJobReply_JobValidationError) Cause

Cause function returns cause value.

func (ListJobReply_JobValidationError) Error

Error satisfies the builtin error interface

func (ListJobReply_JobValidationError) ErrorName

ErrorName returns error name.

func (ListJobReply_JobValidationError) Field

Field function returns field value.

func (ListJobReply_JobValidationError) Key

Key function returns key value.

func (ListJobReply_JobValidationError) Reason

Reason function returns reason value.

type ListJobRequest

type ListJobRequest struct {
	Page     uint32  `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize uint32  `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	Order    *string `protobuf:"bytes,3,opt,name=order,proto3,oneof" json:"order,omitempty"`
	OrderBy  *string `protobuf:"bytes,4,opt,name=orderBy,proto3,oneof" json:"orderBy,omitempty"`
	Name     *string `protobuf:"bytes,5,opt,name=name,proto3,oneof" json:"name,omitempty"`
	Keyword  *string `protobuf:"bytes,6,opt,name=keyword,proto3,oneof" json:"keyword,omitempty"`
	Status   *bool   `protobuf:"varint,7,opt,name=status,proto3,oneof" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*ListJobRequest) Descriptor deprecated

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

Deprecated: Use ListJobRequest.ProtoReflect.Descriptor instead.

func (*ListJobRequest) GetKeyword

func (x *ListJobRequest) GetKeyword() string

func (*ListJobRequest) GetName

func (x *ListJobRequest) GetName() string

func (*ListJobRequest) GetOrder

func (x *ListJobRequest) GetOrder() string

func (*ListJobRequest) GetOrderBy

func (x *ListJobRequest) GetOrderBy() string

func (*ListJobRequest) GetPage

func (x *ListJobRequest) GetPage() uint32

func (*ListJobRequest) GetPageSize

func (x *ListJobRequest) GetPageSize() uint32

func (*ListJobRequest) GetStatus

func (x *ListJobRequest) GetStatus() bool

func (*ListJobRequest) ProtoMessage

func (*ListJobRequest) ProtoMessage()

func (*ListJobRequest) ProtoReflect

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

func (*ListJobRequest) Reset

func (x *ListJobRequest) Reset()

func (*ListJobRequest) String

func (x *ListJobRequest) String() string

func (*ListJobRequest) Validate

func (m *ListJobRequest) Validate() error

Validate checks the field values on ListJobRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListJobRequest) ValidateAll

func (m *ListJobRequest) ValidateAll() error

ValidateAll checks the field values on ListJobRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListJobRequestMultiError, or nil if none found.

type ListJobRequestMultiError

type ListJobRequestMultiError []error

ListJobRequestMultiError is an error wrapping multiple validation errors returned by ListJobRequest.ValidateAll() if the designated constraints aren't met.

func (ListJobRequestMultiError) AllErrors

func (m ListJobRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListJobRequestMultiError) Error

func (m ListJobRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ListJobRequestValidationError

type ListJobRequestValidationError struct {
	// contains filtered or unexported fields
}

ListJobRequestValidationError is the validation error returned by ListJobRequest.Validate if the designated constraints aren't met.

func (ListJobRequestValidationError) Cause

Cause function returns cause value.

func (ListJobRequestValidationError) Error

Error satisfies the builtin error interface

func (ListJobRequestValidationError) ErrorName

func (e ListJobRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ListJobRequestValidationError) Field

Field function returns field value.

func (ListJobRequestValidationError) Key

Key function returns key value.

func (ListJobRequestValidationError) Reason

Reason function returns reason value.

type UnimplementedJobServer

type UnimplementedJobServer struct{}

UnimplementedJobServer must be embedded to have forward compatible implementations.

func (UnimplementedJobServer) CreateJob

func (UnimplementedJobServer) DeleteJob

func (UnimplementedJobServer) ListJob

func (UnimplementedJobServer) UpdateJob

type UnsafeJobServer

type UnsafeJobServer interface {
	// contains filtered or unexported methods
}

UnsafeJobServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to JobServer will result in compilation errors.

type UpdateJobReply

type UpdateJobReply struct {
	// contains filtered or unexported fields
}

func (*UpdateJobReply) Descriptor deprecated

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

Deprecated: Use UpdateJobReply.ProtoReflect.Descriptor instead.

func (*UpdateJobReply) ProtoMessage

func (*UpdateJobReply) ProtoMessage()

func (*UpdateJobReply) ProtoReflect

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

func (*UpdateJobReply) Reset

func (x *UpdateJobReply) Reset()

func (*UpdateJobReply) String

func (x *UpdateJobReply) String() string

func (*UpdateJobReply) Validate

func (m *UpdateJobReply) Validate() error

Validate checks the field values on UpdateJobReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateJobReply) ValidateAll

func (m *UpdateJobReply) ValidateAll() error

ValidateAll checks the field values on UpdateJobReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateJobReplyMultiError, or nil if none found.

type UpdateJobReplyMultiError

type UpdateJobReplyMultiError []error

UpdateJobReplyMultiError is an error wrapping multiple validation errors returned by UpdateJobReply.ValidateAll() if the designated constraints aren't met.

func (UpdateJobReplyMultiError) AllErrors

func (m UpdateJobReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateJobReplyMultiError) Error

func (m UpdateJobReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type UpdateJobReplyValidationError

type UpdateJobReplyValidationError struct {
	// contains filtered or unexported fields
}

UpdateJobReplyValidationError is the validation error returned by UpdateJobReply.Validate if the designated constraints aren't met.

func (UpdateJobReplyValidationError) Cause

Cause function returns cause value.

func (UpdateJobReplyValidationError) Error

Error satisfies the builtin error interface

func (UpdateJobReplyValidationError) ErrorName

func (e UpdateJobReplyValidationError) ErrorName() string

ErrorName returns error name.

func (UpdateJobReplyValidationError) Field

Field function returns field value.

func (UpdateJobReplyValidationError) Key

Key function returns key value.

func (UpdateJobReplyValidationError) Reason

Reason function returns reason value.

type UpdateJobRequest

type UpdateJobRequest struct {
	Id          uint32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"`
	Description *string `protobuf:"bytes,3,opt,name=description,proto3,oneof" json:"description,omitempty"`
	Status      *bool   `protobuf:"varint,4,opt,name=status,proto3,oneof" json:"status,omitempty"`
	Weight      *uint32 `protobuf:"varint,5,opt,name=weight,proto3,oneof" json:"weight,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateJobRequest) Descriptor deprecated

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

Deprecated: Use UpdateJobRequest.ProtoReflect.Descriptor instead.

func (*UpdateJobRequest) GetDescription

func (x *UpdateJobRequest) GetDescription() string

func (*UpdateJobRequest) GetId

func (x *UpdateJobRequest) GetId() uint32

func (*UpdateJobRequest) GetName

func (x *UpdateJobRequest) GetName() string

func (*UpdateJobRequest) GetStatus

func (x *UpdateJobRequest) GetStatus() bool

func (*UpdateJobRequest) GetWeight

func (x *UpdateJobRequest) GetWeight() uint32

func (*UpdateJobRequest) ProtoMessage

func (*UpdateJobRequest) ProtoMessage()

func (*UpdateJobRequest) ProtoReflect

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

func (*UpdateJobRequest) Reset

func (x *UpdateJobRequest) Reset()

func (*UpdateJobRequest) String

func (x *UpdateJobRequest) String() string

func (*UpdateJobRequest) Validate

func (m *UpdateJobRequest) Validate() error

Validate checks the field values on UpdateJobRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateJobRequest) ValidateAll

func (m *UpdateJobRequest) ValidateAll() error

ValidateAll checks the field values on UpdateJobRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateJobRequestMultiError, or nil if none found.

type UpdateJobRequestMultiError

type UpdateJobRequestMultiError []error

UpdateJobRequestMultiError is an error wrapping multiple validation errors returned by UpdateJobRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateJobRequestMultiError) AllErrors

func (m UpdateJobRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateJobRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateJobRequestValidationError

type UpdateJobRequestValidationError struct {
	// contains filtered or unexported fields
}

UpdateJobRequestValidationError is the validation error returned by UpdateJobRequest.Validate if the designated constraints aren't met.

func (UpdateJobRequestValidationError) Cause

Cause function returns cause value.

func (UpdateJobRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateJobRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateJobRequestValidationError) Field

Field function returns field value.

func (UpdateJobRequestValidationError) Key

Key function returns key value.

func (UpdateJobRequestValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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