starter

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package server provides the implementation of the Scoot Worker Server, which implements the Worker API and starts the actual worker.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStatsReceiver

func GetStatsReceiver() stats.StatsReceiver

func MakeServer

func MakeServer(
	handler worker.Worker,
	transport thrift.TServerTransport,
	transportFactory thrift.TTransportFactory,
	protocolFactory thrift.TProtocolFactory) thrift.TServer

Creates a Worker Server

func NewHandler

func NewHandler(stat stats.StatsReceiver, run runner.Service) worker.Worker

Creates a new Handler which combines a runner.Service to do work and a StatsReceiver

func StartServer

func StartServer(
	thriftAddr string,
	httpAddr string,
	bzFiler *bazel.BzFiler,
	db *gitdb.DB,
	oc runners.HttpOutputCreator,
	rID runner.RunnerID,
	dirMonitor *stats.DirsMonitor,
	memCap uint64,
	stat *stats.StatsReceiver,
	preprocessors []func() error,
	postprocessors []func() error,
)

StartServer construct and start scheduler service (without using ice)

Types

type StatsCollectInterval

type StatsCollectInterval time.Duration

defining StatsCollectInterval type so it can be injected via ICE (avoid conflict with other injected integers)

type WorkerStatusHTTPHandler

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

WorkerStatusHTTPHandler implements http.Handler to return status for aurora health check endpoints based on the underlying runner.ServiceStatus

func (*WorkerStatusHTTPHandler) ServeHTTP

Jump to

Keyboard shortcuts

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