Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ShutdownChannel = make(chan os.Signal)
)
Functions ¶
func FinishRoutine ¶
func FinishRoutine()
func RunRoutine ¶
func RunRoutine(f func())
func StartRoutine ¶
func StartRoutine()
func WaitForShutdown ¶
func WaitForShutdown()
Types ¶
type GracefulConnection ¶
func (GracefulConnection) Close ¶
func (this GracefulConnection) Close() error
type GracefulListener ¶
func NewListener ¶
func NewListener(oldListener net.Listener) *GracefulListener
func (*GracefulListener) Close ¶
func (this *GracefulListener) Close() error
func (*GracefulListener) CloseOnShutdown ¶
func (this *GracefulListener) CloseOnShutdown()
type MyResponseWriter ¶
func NewResponseWriter ¶
func NewResponseWriter() *MyResponseWriter
func (*MyResponseWriter) Header ¶
func (this *MyResponseWriter) Header() http.Header
func (*MyResponseWriter) WriteHeader ¶
func (this *MyResponseWriter) WriteHeader(status int)
Click to show internal directories.
Click to hide internal directories.