service

package
v0.0.0-...-267ac92 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2016 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	ServiceConfig
	ServiceDependencies
	// contains filtered or unexported fields
}

func NewService

func NewService(config ServiceConfig, deps ServiceDependencies) *Service

NewService creates a new service instance.

func (*Service) Run

func (s *Service) Run()

Run starts the service and waits for OS signals to terminate it.

func (*Service) TriggerUpdate

func (s *Service) TriggerUpdate()

TriggerUpdate notifies the service to update the haproxy configuration

type ServiceConfig

type ServiceConfig struct {
	HaproxyConfPath string
	HaproxyPath     string
	HaproxyPidPath  string
}

type ServiceDependencies

type ServiceDependencies struct {
	Logger  *logging.Logger
	Backend backend.Backend
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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