channels

package
v0.0.0-...-c381765 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2017 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel interface {
	CreateChannel()
	StartChannelListener()
}

Channel is the interface for creating new listening channels

type OSSigChannel

type OSSigChannel struct {
	Server *manners.GracefulServer
	Log    logger.Log
	// contains filtered or unexported fields
}

OSSigChannel listens to os system events

func (*OSSigChannel) CreateChannel

func (channel *OSSigChannel) CreateChannel()

CreateChannel setups a new channel to listen to OS events

func (*OSSigChannel) StartChannelListener

func (channel *OSSigChannel) StartChannelListener()

StartChannelListener listens and handles SIGTERM / SIGINT events

Jump to

Keyboard shortcuts

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