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 JobRequestHandler ¶
type JobRequestHandler interface { batchpb.JobServer HandleJobRequest(request *batchpb.ServerMessage) (*batchpb.ClientMessage, error) WorkerCount() int }
type WorkerConnection ¶
type WorkerConnection = workers.WorkerRequestBroker[*batchpb.ServerMessage, *batchpb.ClientMessage]
Click to show internal directories.
Click to hide internal directories.