jobs

package
v0.0.0-...-137a528 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JobManager

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

func New

func New() *JobManager

func (*JobManager) HandleJob

func (s *JobManager) HandleJob(handlerConnectionStream batchpb.Job_HandleJobServer) error

Subscribe allows the local nitric server to register new subscribers

called by Nitric applications wishing to subscribe to a topic.
the stream establishes communication between that subscriber and this server

func (*JobManager) HandleJobRequest

func (s *JobManager) HandleJobRequest(request *batchpb.ServerMessage) (*batchpb.ClientMessage, error)

func (*JobManager) WorkerCount

func (s *JobManager) WorkerCount() int

type JobName

type JobName = string

type JobRequestHandler

type JobRequestHandler interface {
	batchpb.JobServer
	HandleJobRequest(request *batchpb.ServerMessage) (*batchpb.ClientMessage, error)
	WorkerCount() int
}

Jump to

Keyboard shortcuts

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