Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterWorkerHttpHandlers(router *mux.Router, prefix string, cli WorkerClient)
- func RegisterWorkerServer(s grpc.ServiceRegistrar, srv WorkerServer)
- func RegisterWorkerServiceHttpHandlers(router *mux.Router, prefix string, cli WorkerServiceClient)
- func RegisterWorkerServiceServer(s grpc.ServiceRegistrar, srv WorkerServiceServer)
- type CreateJobInput
- func (*CreateJobInput) Descriptor() ([]byte, []int)deprecated
- func (x *CreateJobInput) GetInputs() map[string]string
- func (x *CreateJobInput) GetType() string
- func (*CreateJobInput) ProtoMessage()
- func (x *CreateJobInput) ProtoReflect() protoreflect.Message
- func (x *CreateJobInput) Reset()
- func (x *CreateJobInput) String() string
- type CreateJobOutput
- type DescribeJobInput
- type DescribeJobOutput
- type Job
- func (*Job) Descriptor() ([]byte, []int)deprecated
- func (x *Job) GetCompleteAt() *timestamppb.Timestamp
- func (x *Job) GetCreatedAt() *timestamppb.Timestamp
- func (x *Job) GetId() string
- func (x *Job) GetInputs() map[string]string
- func (x *Job) GetLogs() string
- func (x *Job) GetOutputs() map[string]string
- func (x *Job) GetProgress() uint32
- func (x *Job) GetProgressAt() *timestamppb.Timestamp
- func (x *Job) GetStartedAt() *timestamppb.Timestamp
- func (x *Job) GetStatus() Job_Status
- func (x *Job) GetTotal() uint32
- func (x *Job) GetType() string
- func (*Job) ProtoMessage()
- func (x *Job) ProtoReflect() protoreflect.Message
- func (x *Job) Reset()
- func (x *Job) String() string
- type JobTriggerEvent
- type Job_Status
- type ListJobsInput
- func (*ListJobsInput) Descriptor() ([]byte, []int)deprecated
- func (x *ListJobsInput) GetFilters() *ListJobsInput_Filter
- func (x *ListJobsInput) GetOffset() int32
- func (x *ListJobsInput) GetSize() int32
- func (*ListJobsInput) ProtoMessage()
- func (x *ListJobsInput) ProtoReflect() protoreflect.Message
- func (x *ListJobsInput) Reset()
- func (x *ListJobsInput) String() string
- type ListJobsInput_Filter
- func (*ListJobsInput_Filter) Descriptor() ([]byte, []int)deprecated
- func (x *ListJobsInput_Filter) GetId() []*wellknown.ExpressionID
- func (x *ListJobsInput_Filter) GetStatus() []*wellknown.ExpressionEnum
- func (x *ListJobsInput_Filter) GetType() []*wellknown.ExpressionEnum
- func (*ListJobsInput_Filter) ProtoMessage()
- func (x *ListJobsInput_Filter) ProtoReflect() protoreflect.Message
- func (x *ListJobsInput_Filter) Reset()
- func (x *ListJobsInput_Filter) String() string
- type ListJobsOutput
- func (*ListJobsOutput) Descriptor() ([]byte, []int)deprecated
- func (x *ListJobsOutput) GetItems() []*Job
- func (x *ListJobsOutput) GetTotal() int32
- func (*ListJobsOutput) ProtoMessage()
- func (x *ListJobsOutput) ProtoReflect() protoreflect.Message
- func (x *ListJobsOutput) Reset()
- func (x *ListJobsOutput) String() string
- type UnimplementedWorkerServer
- func (UnimplementedWorkerServer) CreateJob(context.Context, *CreateJobInput) (*CreateJobOutput, error)
- func (UnimplementedWorkerServer) DescribeJob(context.Context, *DescribeJobInput) (*DescribeJobOutput, error)
- func (UnimplementedWorkerServer) ListJobs(context.Context, *ListJobsInput) (*ListJobsOutput, error)
- type UnimplementedWorkerServiceServer
- func (UnimplementedWorkerServiceServer) CreateJob(context.Context, *CreateJobInput) (*CreateJobOutput, error)
- func (UnimplementedWorkerServiceServer) DescribeJob(context.Context, *DescribeJobInput) (*DescribeJobOutput, error)
- func (UnimplementedWorkerServiceServer) ListJobs(context.Context, *ListJobsInput) (*ListJobsOutput, error)
- type UnsafeWorkerServer
- type UnsafeWorkerServiceServer
- type WorkerClient
- type WorkerInterceptor
- func (i *WorkerInterceptor) CreateJob(ctx context.Context, in *CreateJobInput, opts ...grpc.CallOption) (*CreateJobOutput, error)
- func (i *WorkerInterceptor) DescribeJob(ctx context.Context, in *DescribeJobInput, opts ...grpc.CallOption) (*DescribeJobOutput, error)
- func (i *WorkerInterceptor) ListJobs(ctx context.Context, in *ListJobsInput, opts ...grpc.CallOption) (*ListJobsOutput, error)
- type WorkerServer
- type WorkerService
- func (s *WorkerService) CreateJob(ctx context.Context, in *CreateJobInput) (*CreateJobOutput, error)
- func (s *WorkerService) DescribeJob(ctx context.Context, in *DescribeJobInput) (*DescribeJobOutput, error)
- func (s *WorkerService) ListJobs(ctx context.Context, in *ListJobsInput) (*ListJobsOutput, error)
- type WorkerServiceClient
- type WorkerServiceInterceptor
- func (i *WorkerServiceInterceptor) CreateJob(ctx context.Context, in *CreateJobInput, opts ...grpc.CallOption) (*CreateJobOutput, error)
- func (i *WorkerServiceInterceptor) DescribeJob(ctx context.Context, in *DescribeJobInput, opts ...grpc.CallOption) (*DescribeJobOutput, error)
- func (i *WorkerServiceInterceptor) ListJobs(ctx context.Context, in *ListJobsInput, opts ...grpc.CallOption) (*ListJobsOutput, error)
- type WorkerServiceServer
- type WorkerServiceService
- func (s *WorkerServiceService) CreateJob(ctx context.Context, in *CreateJobInput) (*CreateJobOutput, error)
- func (s *WorkerServiceService) DescribeJob(ctx context.Context, in *DescribeJobInput) (*DescribeJobOutput, error)
- func (s *WorkerServiceService) ListJobs(ctx context.Context, in *ListJobsInput) (*ListJobsOutput, error)
Constants ¶
const ( Worker_CreateJob_FullMethodName = "/eolymp.worker.Worker/CreateJob" Worker_DescribeJob_FullMethodName = "/eolymp.worker.Worker/DescribeJob" Worker_ListJobs_FullMethodName = "/eolymp.worker.Worker/ListJobs" )
const ( WorkerService_CreateJob_FullMethodName = "/eolymp.worker.WorkerService/CreateJob" WorkerService_DescribeJob_FullMethodName = "/eolymp.worker.WorkerService/DescribeJob" WorkerService_ListJobs_FullMethodName = "/eolymp.worker.WorkerService/ListJobs" )
Variables ¶
var ( Job_Status_name = map[int32]string{ 0: "UNKNOWN", 1: "CREATED", 2: "STARTED", 3: "COMPLETE", 4: "ERROR", } Job_Status_value = map[string]int32{ "UNKNOWN": 0, "CREATED": 1, "STARTED": 2, "COMPLETE": 3, "ERROR": 4, } )
Enum value maps for Job_Status.
var File_eolymp_worker_events_proto protoreflect.FileDescriptor
var File_eolymp_worker_job_proto protoreflect.FileDescriptor
var File_eolymp_worker_worker_service_proto protoreflect.FileDescriptor
var WorkerService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "eolymp.worker.WorkerService", HandlerType: (*WorkerServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateJob", Handler: _WorkerService_CreateJob_Handler, }, { MethodName: "DescribeJob", Handler: _WorkerService_DescribeJob_Handler, }, { MethodName: "ListJobs", Handler: _WorkerService_ListJobs_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "eolymp/worker/worker_service.proto", }
WorkerService_ServiceDesc is the grpc.ServiceDesc for WorkerService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Worker_ServiceDesc = grpc.ServiceDesc{ ServiceName: "eolymp.worker.Worker", HandlerType: (*WorkerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateJob", Handler: _Worker_CreateJob_Handler, }, { MethodName: "DescribeJob", Handler: _Worker_DescribeJob_Handler, }, { MethodName: "ListJobs", Handler: _Worker_ListJobs_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "eolymp/worker/worker_service.proto", }
Worker_ServiceDesc is the grpc.ServiceDesc for Worker service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterWorkerHttpHandlers ¶
func RegisterWorkerHttpHandlers(router *mux.Router, prefix string, cli WorkerClient)
RegisterWorkerHttpHandlers adds handlers for for WorkerClient This constructor creates http.Handler, the actual implementation might change at any moment
func RegisterWorkerServer ¶
func RegisterWorkerServer(s grpc.ServiceRegistrar, srv WorkerServer)
func RegisterWorkerServiceHttpHandlers ¶
func RegisterWorkerServiceHttpHandlers(router *mux.Router, prefix string, cli WorkerServiceClient)
RegisterWorkerServiceHttpHandlers adds handlers for for WorkerServiceClient This constructor creates http.Handler, the actual implementation might change at any moment
func RegisterWorkerServiceServer ¶
func RegisterWorkerServiceServer(s grpc.ServiceRegistrar, srv WorkerServiceServer)
Types ¶
type CreateJobInput ¶
type CreateJobInput struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Inputs map[string]string `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
func (*CreateJobInput) Descriptor
deprecated
func (*CreateJobInput) Descriptor() ([]byte, []int)
Deprecated: Use CreateJobInput.ProtoReflect.Descriptor instead.
func (*CreateJobInput) GetInputs ¶
func (x *CreateJobInput) GetInputs() map[string]string
func (*CreateJobInput) GetType ¶
func (x *CreateJobInput) GetType() string
func (*CreateJobInput) ProtoMessage ¶
func (*CreateJobInput) ProtoMessage()
func (*CreateJobInput) ProtoReflect ¶
func (x *CreateJobInput) ProtoReflect() protoreflect.Message
func (*CreateJobInput) Reset ¶
func (x *CreateJobInput) Reset()
func (*CreateJobInput) String ¶
func (x *CreateJobInput) String() string
type CreateJobOutput ¶
type CreateJobOutput struct { JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` // contains filtered or unexported fields }
func (*CreateJobOutput) Descriptor
deprecated
func (*CreateJobOutput) Descriptor() ([]byte, []int)
Deprecated: Use CreateJobOutput.ProtoReflect.Descriptor instead.
func (*CreateJobOutput) GetJobId ¶
func (x *CreateJobOutput) GetJobId() string
func (*CreateJobOutput) ProtoMessage ¶
func (*CreateJobOutput) ProtoMessage()
func (*CreateJobOutput) ProtoReflect ¶
func (x *CreateJobOutput) ProtoReflect() protoreflect.Message
func (*CreateJobOutput) Reset ¶
func (x *CreateJobOutput) Reset()
func (*CreateJobOutput) String ¶
func (x *CreateJobOutput) String() string
type DescribeJobInput ¶
type DescribeJobInput struct { JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` // contains filtered or unexported fields }
func (*DescribeJobInput) Descriptor
deprecated
func (*DescribeJobInput) Descriptor() ([]byte, []int)
Deprecated: Use DescribeJobInput.ProtoReflect.Descriptor instead.
func (*DescribeJobInput) GetJobId ¶
func (x *DescribeJobInput) GetJobId() string
func (*DescribeJobInput) ProtoMessage ¶
func (*DescribeJobInput) ProtoMessage()
func (*DescribeJobInput) ProtoReflect ¶
func (x *DescribeJobInput) ProtoReflect() protoreflect.Message
func (*DescribeJobInput) Reset ¶
func (x *DescribeJobInput) Reset()
func (*DescribeJobInput) String ¶
func (x *DescribeJobInput) String() string
type DescribeJobOutput ¶
type DescribeJobOutput struct { Job *Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` // contains filtered or unexported fields }
func (*DescribeJobOutput) Descriptor
deprecated
func (*DescribeJobOutput) Descriptor() ([]byte, []int)
Deprecated: Use DescribeJobOutput.ProtoReflect.Descriptor instead.
func (*DescribeJobOutput) GetJob ¶
func (x *DescribeJobOutput) GetJob() *Job
func (*DescribeJobOutput) ProtoMessage ¶
func (*DescribeJobOutput) ProtoMessage()
func (*DescribeJobOutput) ProtoReflect ¶
func (x *DescribeJobOutput) ProtoReflect() protoreflect.Message
func (*DescribeJobOutput) Reset ¶
func (x *DescribeJobOutput) Reset()
func (*DescribeJobOutput) String ¶
func (x *DescribeJobOutput) String() string
type Job ¶
type Job struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Inputs map[string]string `` /* 153-byte string literal not displayed */ CreatedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` StartedAt *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` ProgressAt *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=progress_at,json=progressAt,proto3" json:"progress_at,omitempty"` CompleteAt *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=complete_at,json=completeAt,proto3" json:"complete_at,omitempty"` // progress is a number from 0 to `total`, showing amount of work complete Progress uint32 `protobuf:"varint,20,opt,name=progress,proto3" json:"progress,omitempty"` Total uint32 `protobuf:"varint,21,opt,name=total,proto3" json:"total,omitempty"` Status Job_Status `protobuf:"varint,30,opt,name=status,proto3,enum=eolymp.worker.Job_Status" json:"status,omitempty"` Outputs map[string]string `` /* 156-byte string literal not displayed */ Logs string `protobuf:"bytes,100,opt,name=logs,proto3" json:"logs,omitempty"` // contains filtered or unexported fields }
func (*Job) Descriptor
deprecated
func (*Job) GetCompleteAt ¶
func (x *Job) GetCompleteAt() *timestamppb.Timestamp
func (*Job) GetCreatedAt ¶
func (x *Job) GetCreatedAt() *timestamppb.Timestamp
func (*Job) GetOutputs ¶
func (*Job) GetProgress ¶
func (*Job) GetProgressAt ¶
func (x *Job) GetProgressAt() *timestamppb.Timestamp
func (*Job) GetStartedAt ¶
func (x *Job) GetStartedAt() *timestamppb.Timestamp
func (*Job) GetStatus ¶
func (x *Job) GetStatus() Job_Status
func (*Job) ProtoMessage ¶
func (*Job) ProtoMessage()
func (*Job) ProtoReflect ¶
func (x *Job) ProtoReflect() protoreflect.Message
type JobTriggerEvent ¶
type JobTriggerEvent struct { Job *Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` // contains filtered or unexported fields }
func (*JobTriggerEvent) Descriptor
deprecated
func (*JobTriggerEvent) Descriptor() ([]byte, []int)
Deprecated: Use JobTriggerEvent.ProtoReflect.Descriptor instead.
func (*JobTriggerEvent) GetJob ¶
func (x *JobTriggerEvent) GetJob() *Job
func (*JobTriggerEvent) ProtoMessage ¶
func (*JobTriggerEvent) ProtoMessage()
func (*JobTriggerEvent) ProtoReflect ¶
func (x *JobTriggerEvent) ProtoReflect() protoreflect.Message
func (*JobTriggerEvent) Reset ¶
func (x *JobTriggerEvent) Reset()
func (*JobTriggerEvent) String ¶
func (x *JobTriggerEvent) String() string
type Job_Status ¶
type Job_Status int32
const ( Job_UNKNOWN Job_Status = 0 Job_CREATED Job_Status = 1 Job_STARTED Job_Status = 2 Job_COMPLETE Job_Status = 3 Job_ERROR Job_Status = 4 )
func (Job_Status) Descriptor ¶
func (Job_Status) Descriptor() protoreflect.EnumDescriptor
func (Job_Status) Enum ¶
func (x Job_Status) Enum() *Job_Status
func (Job_Status) EnumDescriptor
deprecated
func (Job_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use Job_Status.Descriptor instead.
func (Job_Status) Number ¶
func (x Job_Status) Number() protoreflect.EnumNumber
func (Job_Status) String ¶
func (x Job_Status) String() string
func (Job_Status) Type ¶
func (Job_Status) Type() protoreflect.EnumType
type ListJobsInput ¶
type ListJobsInput struct { // pagination Offset int32 `protobuf:"varint,10,opt,name=offset,proto3" json:"offset,omitempty"` Size int32 `protobuf:"varint,11,opt,name=size,proto3" json:"size,omitempty"` // data filters Filters *ListJobsInput_Filter `protobuf:"bytes,40,opt,name=filters,proto3" json:"filters,omitempty"` // contains filtered or unexported fields }
func (*ListJobsInput) Descriptor
deprecated
func (*ListJobsInput) Descriptor() ([]byte, []int)
Deprecated: Use ListJobsInput.ProtoReflect.Descriptor instead.
func (*ListJobsInput) GetFilters ¶
func (x *ListJobsInput) GetFilters() *ListJobsInput_Filter
func (*ListJobsInput) GetOffset ¶
func (x *ListJobsInput) GetOffset() int32
func (*ListJobsInput) GetSize ¶
func (x *ListJobsInput) GetSize() int32
func (*ListJobsInput) ProtoMessage ¶
func (*ListJobsInput) ProtoMessage()
func (*ListJobsInput) ProtoReflect ¶
func (x *ListJobsInput) ProtoReflect() protoreflect.Message
func (*ListJobsInput) Reset ¶
func (x *ListJobsInput) Reset()
func (*ListJobsInput) String ¶
func (x *ListJobsInput) String() string
type ListJobsInput_Filter ¶
type ListJobsInput_Filter struct { Id []*wellknown.ExpressionID `protobuf:"bytes,1,rep,name=id,proto3" json:"id,omitempty"` Type []*wellknown.ExpressionEnum `protobuf:"bytes,2,rep,name=type,proto3" json:"type,omitempty"` Status []*wellknown.ExpressionEnum `protobuf:"bytes,3,rep,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*ListJobsInput_Filter) Descriptor
deprecated
func (*ListJobsInput_Filter) Descriptor() ([]byte, []int)
Deprecated: Use ListJobsInput_Filter.ProtoReflect.Descriptor instead.
func (*ListJobsInput_Filter) GetId ¶
func (x *ListJobsInput_Filter) GetId() []*wellknown.ExpressionID
func (*ListJobsInput_Filter) GetStatus ¶
func (x *ListJobsInput_Filter) GetStatus() []*wellknown.ExpressionEnum
func (*ListJobsInput_Filter) GetType ¶
func (x *ListJobsInput_Filter) GetType() []*wellknown.ExpressionEnum
func (*ListJobsInput_Filter) ProtoMessage ¶
func (*ListJobsInput_Filter) ProtoMessage()
func (*ListJobsInput_Filter) ProtoReflect ¶
func (x *ListJobsInput_Filter) ProtoReflect() protoreflect.Message
func (*ListJobsInput_Filter) Reset ¶
func (x *ListJobsInput_Filter) Reset()
func (*ListJobsInput_Filter) String ¶
func (x *ListJobsInput_Filter) String() string
type ListJobsOutput ¶
type ListJobsOutput struct { Total int32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` Items []*Job `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
func (*ListJobsOutput) Descriptor
deprecated
func (*ListJobsOutput) Descriptor() ([]byte, []int)
Deprecated: Use ListJobsOutput.ProtoReflect.Descriptor instead.
func (*ListJobsOutput) GetItems ¶
func (x *ListJobsOutput) GetItems() []*Job
func (*ListJobsOutput) GetTotal ¶
func (x *ListJobsOutput) GetTotal() int32
func (*ListJobsOutput) ProtoMessage ¶
func (*ListJobsOutput) ProtoMessage()
func (*ListJobsOutput) ProtoReflect ¶
func (x *ListJobsOutput) ProtoReflect() protoreflect.Message
func (*ListJobsOutput) Reset ¶
func (x *ListJobsOutput) Reset()
func (*ListJobsOutput) String ¶
func (x *ListJobsOutput) String() string
type UnimplementedWorkerServer ¶
type UnimplementedWorkerServer struct { }
UnimplementedWorkerServer should be embedded to have forward compatible implementations.
func (UnimplementedWorkerServer) CreateJob ¶
func (UnimplementedWorkerServer) CreateJob(context.Context, *CreateJobInput) (*CreateJobOutput, error)
func (UnimplementedWorkerServer) DescribeJob ¶
func (UnimplementedWorkerServer) DescribeJob(context.Context, *DescribeJobInput) (*DescribeJobOutput, error)
func (UnimplementedWorkerServer) ListJobs ¶
func (UnimplementedWorkerServer) ListJobs(context.Context, *ListJobsInput) (*ListJobsOutput, error)
type UnimplementedWorkerServiceServer ¶
type UnimplementedWorkerServiceServer struct { }
UnimplementedWorkerServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedWorkerServiceServer) CreateJob ¶
func (UnimplementedWorkerServiceServer) CreateJob(context.Context, *CreateJobInput) (*CreateJobOutput, error)
func (UnimplementedWorkerServiceServer) DescribeJob ¶
func (UnimplementedWorkerServiceServer) DescribeJob(context.Context, *DescribeJobInput) (*DescribeJobOutput, error)
func (UnimplementedWorkerServiceServer) ListJobs ¶
func (UnimplementedWorkerServiceServer) ListJobs(context.Context, *ListJobsInput) (*ListJobsOutput, error)
type UnsafeWorkerServer ¶
type UnsafeWorkerServer interface {
// contains filtered or unexported methods
}
UnsafeWorkerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WorkerServer will result in compilation errors.
type UnsafeWorkerServiceServer ¶
type UnsafeWorkerServiceServer interface {
// contains filtered or unexported methods
}
UnsafeWorkerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WorkerServiceServer will result in compilation errors.
type WorkerClient ¶
type WorkerClient interface { CreateJob(ctx context.Context, in *CreateJobInput, opts ...grpc.CallOption) (*CreateJobOutput, error) DescribeJob(ctx context.Context, in *DescribeJobInput, opts ...grpc.CallOption) (*DescribeJobOutput, error) ListJobs(ctx context.Context, in *ListJobsInput, opts ...grpc.CallOption) (*ListJobsOutput, error) }
WorkerClient is the client API for Worker 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 NewWorkerClient ¶
func NewWorkerClient(cc grpc.ClientConnInterface) WorkerClient
type WorkerInterceptor ¶
type WorkerInterceptor struct {
// contains filtered or unexported fields
}
func NewWorkerInterceptor ¶
func NewWorkerInterceptor(cli WorkerClient, middleware ..._WorkerMiddleware) *WorkerInterceptor
NewWorkerInterceptor constructs additional middleware for a server based on annotations in proto files
func (*WorkerInterceptor) CreateJob ¶
func (i *WorkerInterceptor) CreateJob(ctx context.Context, in *CreateJobInput, opts ...grpc.CallOption) (*CreateJobOutput, error)
func (*WorkerInterceptor) DescribeJob ¶
func (i *WorkerInterceptor) DescribeJob(ctx context.Context, in *DescribeJobInput, opts ...grpc.CallOption) (*DescribeJobOutput, error)
func (*WorkerInterceptor) ListJobs ¶
func (i *WorkerInterceptor) ListJobs(ctx context.Context, in *ListJobsInput, opts ...grpc.CallOption) (*ListJobsOutput, error)
type WorkerServer ¶
type WorkerServer interface { CreateJob(context.Context, *CreateJobInput) (*CreateJobOutput, error) DescribeJob(context.Context, *DescribeJobInput) (*DescribeJobOutput, error) ListJobs(context.Context, *ListJobsInput) (*ListJobsOutput, error) }
WorkerServer is the server API for Worker service. All implementations should embed UnimplementedWorkerServer for forward compatibility
type WorkerService ¶
type WorkerService struct {
// contains filtered or unexported fields
}
func NewWorkerHttpClient ¶
func NewWorkerHttpClient(url string, cli _WorkerHttpClient) *WorkerService
NewWorkerHttpClient constructs client for Worker
func (*WorkerService) CreateJob ¶
func (s *WorkerService) CreateJob(ctx context.Context, in *CreateJobInput) (*CreateJobOutput, error)
func (*WorkerService) DescribeJob ¶
func (s *WorkerService) DescribeJob(ctx context.Context, in *DescribeJobInput) (*DescribeJobOutput, error)
func (*WorkerService) ListJobs ¶
func (s *WorkerService) ListJobs(ctx context.Context, in *ListJobsInput) (*ListJobsOutput, error)
type WorkerServiceClient ¶
type WorkerServiceClient interface { CreateJob(ctx context.Context, in *CreateJobInput, opts ...grpc.CallOption) (*CreateJobOutput, error) DescribeJob(ctx context.Context, in *DescribeJobInput, opts ...grpc.CallOption) (*DescribeJobOutput, error) ListJobs(ctx context.Context, in *ListJobsInput, opts ...grpc.CallOption) (*ListJobsOutput, error) }
WorkerServiceClient is the client API for WorkerService 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 NewWorkerServiceClient ¶
func NewWorkerServiceClient(cc grpc.ClientConnInterface) WorkerServiceClient
type WorkerServiceInterceptor ¶
type WorkerServiceInterceptor struct {
// contains filtered or unexported fields
}
func NewWorkerServiceInterceptor ¶
func NewWorkerServiceInterceptor(cli WorkerServiceClient, middleware ..._WorkerServiceMiddleware) *WorkerServiceInterceptor
NewWorkerServiceInterceptor constructs additional middleware for a server based on annotations in proto files
func (*WorkerServiceInterceptor) CreateJob ¶
func (i *WorkerServiceInterceptor) CreateJob(ctx context.Context, in *CreateJobInput, opts ...grpc.CallOption) (*CreateJobOutput, error)
func (*WorkerServiceInterceptor) DescribeJob ¶
func (i *WorkerServiceInterceptor) DescribeJob(ctx context.Context, in *DescribeJobInput, opts ...grpc.CallOption) (*DescribeJobOutput, error)
func (*WorkerServiceInterceptor) ListJobs ¶
func (i *WorkerServiceInterceptor) ListJobs(ctx context.Context, in *ListJobsInput, opts ...grpc.CallOption) (*ListJobsOutput, error)
type WorkerServiceServer ¶
type WorkerServiceServer interface { CreateJob(context.Context, *CreateJobInput) (*CreateJobOutput, error) DescribeJob(context.Context, *DescribeJobInput) (*DescribeJobOutput, error) ListJobs(context.Context, *ListJobsInput) (*ListJobsOutput, error) }
WorkerServiceServer is the server API for WorkerService service. All implementations should embed UnimplementedWorkerServiceServer for forward compatibility
type WorkerServiceService ¶
type WorkerServiceService struct {
// contains filtered or unexported fields
}
func NewWorkerServiceHttpClient ¶
func NewWorkerServiceHttpClient(url string, cli _WorkerServiceHttpClient) *WorkerServiceService
NewWorkerServiceHttpClient constructs client for WorkerService
func (*WorkerServiceService) CreateJob ¶
func (s *WorkerServiceService) CreateJob(ctx context.Context, in *CreateJobInput) (*CreateJobOutput, error)
func (*WorkerServiceService) DescribeJob ¶
func (s *WorkerServiceService) DescribeJob(ctx context.Context, in *DescribeJobInput) (*DescribeJobOutput, error)
func (*WorkerServiceService) ListJobs ¶
func (s *WorkerServiceService) ListJobs(ctx context.Context, in *ListJobsInput) (*ListJobsOutput, error)