Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Graceful ¶
type Graceful interface {
// Start the service. This must block.
Start() error
// Stop the service.
Stop() error
// Notify the service has started.
NotifyStarted() <-chan struct{}
// Notify the service has stopped.
NotifyStopped() <-chan struct{}
}
Graceful is a server that can start and shutdown.
Click to show internal directories.
Click to hide internal directories.