grpc

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToDistributorName added in v0.0.15

func ToDistributorName(in proto.DistributionLogic) models.DistributorName

Types

type GRPCHandler

type GRPCHandler struct {
	proto.UnimplementedControlPlaneServer
	// contains filtered or unexported fields
}

func ProvideControlPlaneGRPCHandler

func ProvideControlPlaneGRPCHandler(
	grpcServer grpc.RAJDSGrpcServer,
	controlPlaneService handlerservice.IControlPlane,
	jobService service.Job,
	taskService service.Task,
	meter metric.Meter,
	taskEventBus eventbus.TaskEventBus,
) GRPCHandler

func (*GRPCHandler) CreateJob

func (*GRPCHandler) ReportFailureTask

func (g *GRPCHandler) ReportFailureTask(ctx context.Context, req *proto.ReportFailureTaskRequest) (*emptypb.Empty, error)

func (*GRPCHandler) ReportSuccessTask

func (g *GRPCHandler) ReportSuccessTask(ctx context.Context, req *proto.ReportSuccessTaskRequest) (*emptypb.Empty, error)

func (*GRPCHandler) WorkerCheckIn

func (g *GRPCHandler) WorkerCheckIn(ctx context.Context, req *proto.WorkerCheckInRequest) (*emptypb.Empty, error)

Jump to

Keyboard shortcuts

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