services

package
v0.2.0-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProfilingService

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

func NewProfilingService

func NewProfilingService(address string) *ProfilingService

func (*ProfilingService) Name

func (ps *ProfilingService) Name() string

func (*ProfilingService) Serve

func (ps *ProfilingService) Serve() error

func (*ProfilingService) Stop

func (ps *ProfilingService) Stop()

type Service

type Service interface {
	Name() string
	Serve() error
	Stop()
}

Service is a service that is registered with and run by a ServiceManager

type ServiceManager

type ServiceManager struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewServiceManager

func NewServiceManager() *ServiceManager

func (*ServiceManager) RegisterService

func (sm *ServiceManager) RegisterService(service Service)

func (*ServiceManager) Run

func (sm *ServiceManager) Run()

func (*ServiceManager) Stop

func (sm *ServiceManager) Stop()

Jump to

Keyboard shortcuts

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