server

package
v0.0.0-...-cf6f0f7 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

Close cleanup server resources

func Init

func Init(configPath string) error

Init initialize server resources

func Run

func Run(ctx context.Context, wg *sync.WaitGroup)

Run server main function

Types

type JobManager

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

JobManager manages set number of parallel running jobs and queues up extra incoming jobs.

func NewJobManager

func NewJobManager(numWorkers int, log *logging.Logger) *JobManager

NewJobManager job manager factory

func (*JobManager) Run

func (jb *JobManager) Run(ctx context.Context, wg *sync.WaitGroup, jobChan <-chan job.Job, authUsers []string)

Run main job manager process

Jump to

Keyboard shortcuts

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