service

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2017 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetLogger

func SetLogger(logger *logging.Logger)

SetLogger allows setting a custom go-logging instance

Types

type MortalService

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

MortalService can be killed at any time.

func NewMortalService

func NewMortalService(network, address string, connectionCallback func(net.Conn) error) *MortalService

NewMortalService creates a new MortalService

func (*MortalService) Start

func (l *MortalService) Start() error

Start the MortalService

func (*MortalService) Stop

func (l *MortalService) Stop()

Stop will kill our listener and all it's connections

Jump to

Keyboard shortcuts

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