graceful

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Graceful

type Graceful struct {
	Logger j2rpc.LevelLogger `inject:""`
	// contains filtered or unexported fields
}

Graceful ...

func (*Graceful) Constructor

func (g *Graceful) Constructor()

Constructor ...

func (*Graceful) RegHTTPServer

func (g *Graceful) RegHTTPServer(srv *http.Server)

RegHTTPServer ...注册一个http服务

func (*Graceful) RegProcessor

func (g *Graceful) RegProcessor(p ItfGracefulProcess)

RegProcessor ...注册一个对象,用于关闭程序后的行为

func (*Graceful) StartSignal

func (g *Graceful) StartSignal()

StartSignal ...监听信号

func (*Graceful) WaitForSignal

func (g *Graceful) WaitForSignal()

WaitForSignal ...

type ItfGracefulProcess

type ItfGracefulProcess interface{ AfterShutdown() }

ItfGracefulProcess 接口,提供给关闭后行为

Jump to

Keyboard shortcuts

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