Documentation ¶
Index ¶
Constants ¶
View Source
const ( API string = "api" Autoscaler string = "autoscaler" Consul string = "consul" Deployer string = "deployer" EventSink string = "event_sink" Forwarder string = "forwarder" Nomad string = "nomad" Server string = "server" Radar string = "radar" Redirecter string = "redirecter" All string = "all" )
Variables ¶
This section is empty.
Functions ¶
func DisableSignalHandling ¶
DisableSignalHandling puts a dummy signal handler
func NewServerService ¶
func NewServerService(serv *server.Server, servicesToWaitFor func() []services.Service) services.Service
NewServerService constructs service from Server component. servicesToWaitFor is called when server is stopping, and should return all services that need to terminate before server actually stops. N.B.: this function is NOT Cortex specific, please let's keep it that way. Passed server should not react on signals. Early return from Run function is considered to be an error.
Types ¶
type Atc ¶
type Atc struct { Cfg Config Server *server.Server Autoscaler *autoscaler.Autoscaler Deployer *deployer.Deployer EventSink *event_sink.EventSink Forwarder *forwarder.Forwarder Radar *radar.Radar Redirecter *redirecter.Redirecter // set during initialization ServiceMap map[string]services.Service ModuleManager *modules.Manager // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.