batch

package
v1.54.13 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionState

type ActionState struct {
	JobName string
	Payload string
	Success bool
}

type BatchRunner

type BatchRunner func(req *batchpb.JobSubmitRequest) error

type LocalBatchService

type LocalBatchService struct {
	*jobs.JobManager
	batchpb.UnimplementedBatchServer
	// contains filtered or unexported fields
}

func NewLocalBatchService

func NewLocalBatchService() *LocalBatchService

func (*LocalBatchService) GetState

func (l *LocalBatchService) GetState() State

func (*LocalBatchService) HandleJob

func (l *LocalBatchService) HandleJob(stream batchpb.Job_HandleJobServer) error

func (*LocalBatchService) SubmitJob

func (*LocalBatchService) SubscribeToAction

func (l *LocalBatchService) SubscribeToAction(subscription func(ActionState))

func (*LocalBatchService) SubscribeToState

func (l *LocalBatchService) SubscribeToState(subscriberFunction func(State))

type State

type State = map[jobName]map[serviceName]int

Jump to

Keyboard shortcuts

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