worker

package
v0.0.0-...-b69f10d Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

Manager controls a worker pool connected to a queue.

func NewManager

func NewManager(conn *grpc.ClientConn, id, baseURL, handlersDir string, numWorkers int) *Manager

NewManager starts a worker pool of size numWorkers connected to the given (presumably local) queue, running scripts off the handlersDir.

func (*Manager) ServeHTTP

func (m *Manager) ServeHTTP(w http.ResponseWriter, req *http.Request)

func (*Manager) Stop

func (m *Manager) Stop()

func (*Manager) Wait

func (m *Manager) Wait()

Jump to

Keyboard shortcuts

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