services

package
v0.0.0-...-560d035 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

func NewServiceManager

func NewServiceManager(logger *zap.Logger, interfaces []server.Interface, services []Service) *Manager

func (*Manager) Bootstrap

func (manager *Manager) Bootstrap()

func (*Manager) OnTickHour

func (manager *Manager) OnTickHour(handler server.TickHandler)

func (*Manager) OnTickMinute

func (manager *Manager) OnTickMinute(handler server.TickHandler)

func (*Manager) OnTickSecond

func (manager *Manager) OnTickSecond(handler server.TickHandler)

func (*Manager) Run

func (manager *Manager) Run()

func (*Manager) Stop

func (manager *Manager) Stop(gracePeriod *time.Duration)

type Service

type Service interface {
	server.Runnable
	//
	GetName() string
	//
	Bootstrap(manager *Manager, interfaces []server.Interface, services []Service)
}

Directories

Path Synopsis
grpc
Package grpc is a generated protocol buffer package.
Package grpc is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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